The <xsl:element>
element creates an element in the output document.
On this page
<xsl:element>
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes
Syntax
<xsl:element name=NAME namespace=URI use-attribute-sets=LIST-OF-NAMES >
TEMPLATE
</xsl:element>
Required Attributes
-
name
-
Specifies the desired name of the output element. The name must be a valid QName.
Optional Attributes
-
namespace
-
Specifies the namespace of the output element.
-
use-attribute-sets
-
A whitespace‐separated list of
attribute-set
element names to be applied to theelement
element's output element. Applied attributes can be overridden via nestedattribute
elements.
Type
Instruction, appears within a template.
Defined
XSLT, section 7.1.2.
Gecko support
Supported.
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/element