The attribute constructor

Just as you can create an element with a constructor, you can also create an attribute:


  [... value of the class attribute ...]
]]>

You might do this if you need to generate the attribute value dynamically based on the content.

Like xsl:variable, the value can be given as the value of a select attribute, or as the content.

XSLT Constructors, slide 4 of 16