priority

Syntax

priority number;

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.

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

None of the examples in this manual use this statement.

Related Topics