The <xsl:attribute>
element creates an attribute in the output document, using any values that can be accessed from the stylesheet. The element must be defined before any other output document element inside the output document element for which it establishes attribute values. But it may be after or inside elements that won't be part of the output (like <xsl:choose>
or <xsl:apply-templates>
etc.).
<xsl:attribute name=NAME namespace=URI> TEMPLATE </xsl:attribute>
name
namespace
Instruction, appears within a template or an <xsl:attribute-set>
element.
XSLT, section 7.1.3.
Supported.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/attribute