创建属性集的示例

<xsl:attribute-set name="font">

  <xsl:attribute name="SetAttribute">red</xsl:attribute>

  <xsl:attribute name="size">30px</xsl:attribute>

  <xsl:attribute name="color">aqua</xsl:attribute>

</xsl:attribute-set>
如何使用XSL:Attribute-Set元素

<XSL:Attribute-Set>标记用于创建命名的属性集。
它包含零个或者多个xsl:属性元素,<xsl:属性集合>可以作为整体应用于输出文档。
<xsl :Attribute-Set>元素支持IE 6.0和FF 1.0。

XSL:attribute的语法

<xsl:attribute-set name="SOME NAME" use-attribute-sets="LIST OF NAME">
    <!--TEMPLATE---->

    </xsl:attribute>

它包含两个属性

  • name

name属性指定属性集的名称。

  • use-attribute-sets

use-attribute-sets是空格分隔的属性集列表。
贡献集的名称必须以空白字符分隔,不得直接或者间接嵌入自己。

日期:2020-04-11 23:03:39 来源:oir作者:oir