[Bug 28775] [XSLT30] Suggestion: prioritise templates with named modes over templates with mode="#all"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28775

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Personal response (and/or request for clarification):

In your example, 

match="text()[contains(., 'x')]"

(with no priority attribute)

would have higher priority than

match="node()|@*"

Even without the predicate a text node would match match="text()" in preference
to match="node()".

So I'm not sure the example justifies the proposal.

I can see the logic that mode="#all" is intuitively some kind of fallback and
should therefore rank lower, but it's not clear how this would fit into the
priority/precedence rules, and it's not clear that it could be made backwards
compatible. Even if we only took the mode attribute into account when the two
rules have the same precedence/priority, XSLT 2.0 processors are entitled to
resolve the ambiguity by choosing the rule that comes last, and a stylesheet
that relied on this behaviour would need to be changed.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 7 June 2015 08:34:44 UTC