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>
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
属性
| 属性 | 值 | 説明 |
|---|---|---|
| name | name | 必須。属性セットの名前を指定します。 |
| use-attribute-sets | name-list | 任意。この属性セットで使用される他の属性セットのリスト。スペースで区切ります。 |
例 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>
<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 要素リファレンス その他の拡張