6.4. The <xsl:attribute-set> Top-Level Element

The <xsl:attribute-set> top-level element provides the ability to set up a group of <xsl:attribute> elements that generate attributes that can be inserted collectively into an element in the result tree.

The <xsl:attribute-set> element has two attributes: the name attribute, which is used to name and call the attribute set created, and the use-attribute-set attribute. The allowed content of the <xsl:attribute-set> element is zero or more <xsl:attribute> elements, as shown in the following element model definition:

<!-- Category: top-level-element -->

<xsl:attribute-set

  name = qname

  use-attribute-sets = qnames>

  <!-- Content: xsl:attribute* -->

</xsl:attribute-set>

Having a content of zero or more ...

Get XSLT and XPATH: A Guide to XML Transformations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.