XSLT:attribute
From MDC
Contents |
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 the first thing defined inside the output document element for which it establishes attribute values.
[edit] Syntax
<xsl:attribute name=NAME namespace=URI> TEMPLATE </xsl:attribute>
[edit] Required Attributes
name- Specifies the name of the attribute to be created in the output document. The name must be a valid QName.
[edit] Optional Attributes
namespace- Defines the namespace URI for this attribute in the output document. You cannot set the related namespace prefix with this element.
[edit] Type
Instruction, appears within a template or an <xsl:attribute-set> element.
[edit] Defined
XSLT, section 7.1.3.
[edit] Gecko support
Supported.