XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Structure controls processing / Default rules for element and document nodes

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)

The default template rules for elements and the document node are neutral. They are transparent for the node being processed and produce no content. Processing simply continues with any child nodes.

This is done by the embedded instruction xsl:apply-templates:

<xsl:template match="*|/">
  <xsl:apply-templates/>
</xsl:template>

Note that the attributes of elements skipped in this way are not processed in this context.

   

back to top