When there are two template rules that match a given
node, and they both have the same priority and import
precedence, then with the default error handling Saxon
should report the conflict (as a warning) and then
select the rule that comes last in the stylesheet.
However, if one of the rules is an element-specific
rule (a rule that can only match elements of one type)
and the other is a general rule (a rule that can match
elements of multiple types) then Saxon always chooses
the specific rule, regardless which one comes first.
Reported by Norman Walsh.
Present in Saxon 6.5, 7.0 and all previous releases.
Source code fixed in both code branches (module