December 2002
Intermediate to advanced
576 pages
32h
English
<xsl:element>
This inserts the element <name> into the
result document. For example:
<xsl:element name="book">
<xsl:element name="chapter">
<xsl:text>The Opening of Pandoras Box</xsl:text>
</xsl:element>
</xsl:element>This creates the following in the result tree:
<book> <chapter>The Opening of Pandoras Box</chapter> </book>
Elements without explicit namespaces use the default namespace of their current context. Also, you can create a namespace for the element yourself:
<xsl:element name="OReilly:Book" namespace="http://www.oreilly.com">
This employs the namespace associated with the URI http://www.oreilly.com with the element. If no namespaces are associated with the URI, it becomes the default namespace.
The &use-attribute-sets; attribute contains a
whitespace-separated list with names of
<xsl:attribute-set> elements. These
attribute sets are merged, and all attributes in the merged set are
added to the element.
<xsl:element name="name" [namespace="URI"] [use-attribute-sets="list"]> ... </xsl:element>
Read now
Unlock full access