This functionality is only available for certain module packages.

You are here: Reference > XML Transformation > XSLT language > <xsl:template> > Template for elements and document root within a mode

Template for elements and document root within a mode

The following rule has a mode designated with the mode attribute. With xsl:apply-templates, only the template whose mode is equivalent to the indicated name can be applied by means of the mode attribute. The rule in the example code has the effect that all child notes of the current element are called up. If the style sheet is empty, this causes the source document to be traversed from the root to the leaves.