xsl:element

  • Create an element in the resulting document.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template name="test">
        <xsl:element name="test">
          ...
        </xsl:element>
      </xsl:template>
    </xsl:stylesheet>
    					
  • Use the name attribute to specify the element name.

  • Use the namespace attribute to specify the element's namespace.

  • The element is added as a child-element to any literal parent element or parent element specified using 'xsl:element'.