XSLT <xsl:attribute-set>
❮完全なXSLT要素リファレンス
定義と使用法
<xsl:attribute-set>要素は、名前付きの属性セットを作成します。属性セットは、出力ドキュメントに全体として適用できます。
注: <xsl:stylesheet>または<xsl:transform>の子である必要があります。
構文
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
属性
Attribute | Value | Description |
---|---|---|
name | name | Required. Specifies the name of the attribute-set |
use-attribute-sets | name-list | Optional. A white space separated list of other attribute-sets to use in the attribute-set |
例1
任意の出力要素に適用できる属性セットを作成します。
<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要素リファレンス