xsl:element

Adds an element to the result tree.

Format

<xsl:element name="qualified_name">
               
  element_contents
               
</xsl:element>
               

            

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

<xsl:element name="audio:CD">
               
  <xsl:element name="audio:title">Celtic Airs</xsl:element>
               
  <xsl:element name="audio:artist">Chieftains</xsl:element>
               
</xsl:element>
               

            

The result of this instruction looks like the following:

<audio:CD>
               
  <audio:title>Celtic Airs</audio:title>
               
  <audio:artist>Chieftains</audio:artist>
               
</audio:CD>
               

            

XML Schema Mapping

Stylus Studio includes a visual XML Schema-to-XML Schema mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code.

HTML to XML Importer

Convert HTML to XML with the Stylus Studio HTML to XML Importer, a powerful, visual utility for Converting HTML to XML with ease.

XML Document Wizards

Stylus Studio XML Document Wizards help you easily convert EDI, flat files, and other document formats to industry-standard XML.

XML Notepad

XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member