Latest web development tutorials

XSLT <xsl: attribute-set> Element

XSLT-Elemente-Referenzhandbuch Komplette XSLT - Element - Referenzhandbuch

Definition und Verwendung

<Xsl: attribute-set> Element erstellt eine benannte Gruppe von Attributen. Der Satz von Attributen (attribute-set) kann als Ganzes in das Ausgabedokument angewendet werden.

Hinweis: Sie müssen <xsl: stylesheet> oder <xsl: transform > Kind - Knoten.


Grammatik

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

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

</xsl:attribute-set>

Immobilien

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

Beispiel 1

Es kann angewendet werden, eine Reihe von Attributen (attribute-set) jedes Ausgabeelement zu erstellen:

<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-Elemente-Referenzhandbuch Komplette XSLT - Element - Referenzhandbuch