XSLT <xsl:conjunto de atributos>
❮ Referencia completa del elemento XSLT
Definición y uso
El elemento <xsl:attribute-set> crea un conjunto de atributos con nombre. El conjunto de atributos se puede aplicar en su totalidad al documento de salida.
Nota: Debe ser hijo de <xsl:stylesheet> o <xsl:transform>.
Sintaxis
<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 |
Ejemplo 1
Cree un conjunto de atributos que se pueda aplicar a cualquier elemento de salida:
<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>
❮ Referencia completa del elemento XSLT