This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12450 - [XSLT 3.0] Need rules for default priority of new kinds of pattern
Summary: [XSLT 3.0] Need rules for default priority of new kinds of pattern
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 08:28 UTC by Michael Kay
Modified: 2012-02-29 22:16 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2011-04-08 08:28:06 UTC
The rules in section 6.5 (Default Priority of Template Rules) should be reviewed for new ItemTypes introduced in XPath 3.0:

function items
union types
maps

There's a fallback rule that gives these all a priority of 0.5, but it's not clear this is the best we can do.

For a union type I would suggest "the minimum priority of the atomic types in the transitive membership of the union, minus 0.5." This gives union(date, dateTime) a lower priority than dateTime but a higher priority than anyAtomicType, and it gives union(ID, IDREF) a lower priority than IDREF but a higher priority than NCName.

We specify the default priority for ~function(*) as -1; I suggest that any more specific function type should have priority zero, ~map(*) should have +0.5, and the default priority of ~map(K,V) should be the default priority of K.
Comment 1 Michael Kay 2012-02-17 14:07:41 UTC
The proposal was accepted.
Comment 2 Michael Kay 2012-02-29 22:16:22 UTC
The changes have been applied in editor's draft K.