xsl:attribute-set
<xsl:attribute-set name = "QualifiedName
" use-attribute-sets = "QualifiedName1 QualifiedName2...
"> <! -- xsl:attribute* -- > </xsl:attribute-set>
The xsl:attribute-set
top-level element defines a collection of
attributes that can be applied to elements elsewhere in the
stylesheet. For instance, you could define an attribute set that
includes the necessary attributes to create a simple XLink, and
then you could attach the set to each simple XLink element.
name
, requiredThe name
attribute
gives a name for the set, by which xsl:element
and other xsl:attribute-set
elements can
load this attribute set.
use-attribute-sets
,
optionalThe use-attribute-sets
attribute adds
attributes from a different attribute set into this
attribute set. More than one attribute set can be loaded by
separating multiple names with whitespace. The attributes
defined in all loaded sets and all attributes defined by
child xsl:attribute
elements are merged so that no attribute appears in the set
more than once. It is an error if an attribute set uses
itself directly or indirectly.