The XSL Elements

So far, you've used only a few of the XSL elements that are supported. See Table 15.1 for more of them.

Table 15.1. XSL Elements
ElementFunction
xsl:apply-templatesCommands the XSL processor to find and execute the appropriate template(s).
xsl:attributeCreatesan attribute node and applies it to the output node structure.
xsl:cdataInsertsa CDATA section into the output.
xsl:chooseUsed for conditional testing and processing. Generally used in combination with the xsl:otherwise and xsl:when elements.
xsl:commentInserts acomment into the output node structure.
xsl:copyMakes a copy of a source node.
xsl:define-template-setDefines a set of templates.
xsl:elementInserts an element into the output with the specified name.
xsl:entity-refInserts ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.