Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

xsl:apply-templates

Syntax

Description

Apply one or more templates, according to the value of the select attribute. If the select attribute is not included, the script recursively processes all child nodes of the current node. If the select attribute is present, the processor only applies templates to the child elements that match the expression of the select attribute, which must evaluate to a node-set. The <xsl:template> instruction dictates which elements are transformed according to which template. The templates that are applied are passed the parameters specified by the <xsl:with-param> elements within the <xsl:apply-templates> instruction.

Attributes

select

(Optional) Selects the nodes to which the processor applies templates. By default, the processor applies templates to the child nodes of the current node.