xsl:attribute-set

Used to declare a named collection of attributes, which will often be used together to define an output style. It is declared at the top level (subordinate to xsl:stylesheet).

Category: declaration
Content: xsl:attribute*
Permitted parent elements: xsl:stylesheet ; xsl:transform ; xsl:override

Attributes

name

eqname

use-attribute-sets?

eqnames

visibility?

"public" | "private" | "final" | "abstract"

Determines the potential visibility of the component corresponding to this attribute set (the default is private). All the declarations for an attribute set must have the same value for this attribute.

streamable?

boolean

Details

An attribute-set contains a collection of xsl:attribute elements.

The attributes in an attribute-set can be used in several ways:

Attribute sets named in the xsl:use-attribute-sets or use-attribute-sets attribute are applied in the order given: if the same attribute is generated more than once, the later value always takes precedence.

Links to W3C specifications

XSLT 2.0 Specification

XSLT 3.0 Specification

See also

xsl:attribute

xsl:element

literal result elements