Latest web development tutorials

XSLT <xsl: attribute-set> element

XSLT Elements Reference Manual Complete XSLT Element Reference Manual

Definition and Usage

<Xsl: attribute-set> element creates a named set of attributes. The set of attributes (attribute-set) can be applied as a whole to the output document.

Note: You must be <xsl: stylesheet> or <xsl: transform> child node.


grammar

<xsl:attribute-set
name="name" use-attribute-sets="name-list">

<!-- Content:xsl:attribute* -->

</xsl:attribute-set>

Attributes

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

Example 1

It can be applied to create a set of attributes (attribute-set) any output element:

<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>


XSLT Elements Reference Manual Complete XSLT Element Reference Manual