XSLT <xsl:sada-atributů>
❮ Kompletní reference prvků XSLT
Definice a použití
Element <xsl:attribute-set> vytváří pojmenovanou sadu atributů. Sada atributů může být použita jako celek na výstupní dokument.
Poznámka: Musí být potomkem <xsl:stylesheet> nebo <xsl:transform>.
Syntax
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
Atributy
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 |
Příklad 1
Vytvořte sadu atributů, kterou lze použít na jakýkoli výstupní prvek:
<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>
❮ Kompletní reference prvků XSLT