Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

mode

Syntax

Description

Indicate the mode in which a template needs to be applied for the template to be used. If templates are applied in the specified mode, the match statement is used to determine whether the template can be used with the particular node. If more than one template matches a node in the specified mode, the priority statement determines which template is used. The highest priority wins. If no priority is specified explicitly, the priority of a template is determined by the match statement.

This statement is comparable to the mode attribute of the <xsl:template> element. You can include this statement inside a SLAX match or apply-templates statement.

SLAX Example

XSLT Equivalent

Release Information

Statement introduced in version 1.0 of the SLAX language.