Latest web development tutorials

XSLTます。<xsl:属性セット>要素

XSLTの要素リファレンス・マニュアル 完全なXSLT要素のリファレンス・マニュアル

定義と使用法

ます。<xsl:属性セット>要素は、属性の名前付きセットを作成します。 属性(属性セット)のセットは、出力文書に全体として適用することができます。

注:またはます。<xsl:transform>の子ノード: あなたは<スタイルシートのxsl>でなければなりません。


文法

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

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

</xsl:attribute-set>

プロパティ

属性 描述
name name 必需。规定属性集(attribute-set)的名称。
use-attribute-sets name-list 可选。在该属性集(attribute-set)中使用的其它属性集(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の要素リファレンス・マニュアル 完全なXSLT要素のリファレンス・マニュアル