Home >Online Product Documentation >Table of Contents >xsl:element
xsl:element
Adds an element to the result tree.
Format
Description
The XSLT processor uses the contents of the xsl:element
instruction as a template for the attributes and contents of the new element.
The prefix part of the name
attribute becomes the prefix for the element you are creating. The local part of the name
attribute becomes the local name of the element you are creating.
The XSLT processor interprets the name
attribute as an attribute value template. The string that results from instantiating the attribute value template must be a qualified name. If it is not, the XSLT processor reports an error.
Example
The result of this instruction looks like the following: