Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

priority

Syntax

priority number;

Release Information

Statement introduced in version 1.0 of the SLAX language.

Description

If more than one template matches a node in the specified mode, this 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 priority attribute of the <xsl:template> element. You can include this statement inside a SLAX match statement.

SLAX Example

match * {
    priority 10;
    <output> .;
}

XSLT Equivalent

<xsl:template match="*" priority="10">
    <output>
        <xsl:value-of select="."/>
    </output>
</xsl:template>

Usage Examples

None of the examples in this manual use this statement.

Published: 2013-03-05