XSLT <xsl: attribute-set> Element
Definicja i Wykorzystanie
<Xsl: attribute-set> Element tworzy nazwany zbiór atrybutów. Zestaw atrybutów (attribute-set) mogą być stosowane jako całość do dokumentu wyjściowego.
Uwaga: Musisz być <xsl: stylesheet> lub <xsl: transform> węzeł podrzędny.
gramatyka
<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>
nieruchomość
属性 | 值 | 描述 |
---|---|---|
name | name | 必需。规定属性集(attribute-set)的名称。 |
use-attribute-sets | name-list | 可选。在该属性集(attribute-set)中使用的其它属性集(attribute-set)的列表,由空格分隔。 |
Przykład 1
Może być stosowany do tworzenia zestawu atrybutów (attribute-set) każdego elementu wyjściowego:
<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>
Kompletna instrukcja XSLT element odniesienia