Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

apply-templates

Syntax

Description

Apply one or more templates, according to the value of the node-set expression. If a node-set expression is not specified, the script recursively processes all child nodes of the current node. If a node-set expression is specified, the processor only applies templates to the child elements that match the node-set expression. The template statement dictates which elements are transformed according to which template. The templates that are applied are passed the parameters specified by the with statement within the apply-templates statement block.

Attributes

expression

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

SLAX Example

XSLT Equivalent

Release Information

Statement introduced in version 1.0 of the SLAX language.