您现在的位置: 365建站网 > 建站教程 > XSLT 教程 > XSLT <xsl:attribute-set> 元素

XSLT <xsl:attribute-set> 元素

此节有 209 人学习过     参与评论

定义和用法

<xsl:attribute-set> 元素可创建命名的属性集。该属性集(attribute-set)可作为整体应用到输出文档。

注释:必须是 <xsl:stylesheet> 或 <xsl:transform> 的子节点。

语法

<xsl:attribute-set
name="name" use-attribute-sets="name-list">
  <!-- Content:xsl:attribute* -->
</xsl:attribute-set>

属性

属性 描述
name name 必需。规定属性集的名称。
use-attribute-sets name-list 可选。在该属性集中使用的其它属性集的列表,由空格分隔。

实例

例子 1

创建可应用到任何输出元素的属性集(attribute-set ):

<xsl:attribute-set name="font">
  <xsl:attribute name="fname">Arial</xsl:attribute>
  <xsl:attribute name="size">14px</xsl:attribute>
  <xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>

如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛

您可能感兴趣的文章:

发表评论 (209人查看0条评论)
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
昵称:
最新评论
------分隔线----------------------------
XSLT 教程目录

快速入口

· 365软件
· 杰创官网
· 建站工具
· 网站大全

其它栏目

· 建站教程
· 365学习

业务咨询

· 技术支持
· 服务时间:9:00-18:00
365建站网二维码

Powered by 365建站网 RSS地图 HTML地图

copyright © 2013-2024 版权所有 鄂ICP备17013400号