W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2012

[Bug 20271] [XT30] QualifiedPattern priority

From: <bugzilla@jessica.w3.org>
Date: Thu, 06 Dec 2012 12:37:04 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20271-523-7Xzt1tFjpV@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20271

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
It's covered by the fallback rule which says all other cases have default
priority +0.5.

The question is whether we can do better than that. Making the rules smarter is
not necessarily a good thing to do if it makes them less predictable. 

The current rule that treats a union pattern as if there were two separate
template rules with different priority is legacy. It's not obvious how to
extend this idea. Logically (A intersect B) should have a priority that is
higher than that of A or B, but lower than (A intersect B intersect C). I think
it just gets too difficult and you have to draw the line somewhere; I think the
simple guidance to users should be "for simple NodeTests, the default priority
is useful; for anything else, use explicit priorities".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 6 December 2012 12:37:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 December 2012 12:37:17 GMT