XSLT <xsl:set-attributi>
❮ Completa il riferimento agli elementi XSLT
Definizione e utilizzo
L'elemento <xsl:attribute-set> crea un insieme denominato di attributi. Il set di attributi può essere applicato per intero al documento di output.
Nota: deve essere figlio di <xsl:stylesheet> o <xsl:transform>.
Sintassi
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
Attributi
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 |
Esempio 1
Crea un set di attributi che può essere applicato a qualsiasi elemento di output:
<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>
❮ Completa il riferimento agli elementi XSLT