<: Atributo de conjunto XSL> elemento XSLT
Definición y Uso
<Xsl: attribute-set> crea un conjunto con nombre de atributos. El conjunto de atributos (atributo-set) se puede aplicar en su conjunto para el documento de salida.
Nota: Usted debe ser <xsl: stylesheet> o <xsl: transform> nodo hijo.
gramática
<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>
propiedad
属性 | 值 | 描述 |
---|---|---|
name | name | 必需。规定属性集(attribute-set)的名称。 |
use-attribute-sets | name-list | 可选。在该属性集(attribute-set)中使用的其它属性集(attribute-set)的列表,由空格分隔。 |
Ejemplo 1
Se puede aplicar para crear un conjunto de atributos (atributo-set) 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>
<xsl:attribute name="fname">Arial</xsl:attribute>
<xsl:attribute name="size">14px</xsl:attribute>
<xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>
Completo manual de referencia del elemento XSLT