XSLT <xsl:attribute-set>
❮ Referência Completa do Elemento XSLT
Definição e uso
O elemento <xsl:attribute-set> cria um conjunto nomeado de atributos. O conjunto de atributos pode ser aplicado como um todo ao documento de saída.
Nota: Deve ser filho de <xsl:stylesheet> ou <xsl:transform>.
Sintaxe
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
Atributos
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 |
Exemplo 1
Crie um conjunto de atributos que possa ser aplicado a qualquer elemento de saída:
<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>
❮ Referência Completa do Elemento XSLT