This functionality is only available for certain module packages.

You are here: Reference > XML Transformation > XSLT language > <xsl:template> > <xsl:apply-templates>

<xsl:apply-templates>

The code <xsl:apply-templates> is used to apply templates. In the select attribute, an XPath expression is indicated that selects the node to be processed starting from the current node. The result is a list of nodes (Node Set). The node set is processed element by element and an appropriate template rule is sought for each. Here, the current element in the node set becomes the current node of the process. If there is no template rule, implicit rules are applied.

If the select attribute is not indicated, the node set includes all child nodes. This is equivalent to the expression select='child::*' or select='*'.

The mode attribute is used to select additional template rules to be applied.