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 4466 - K2-MatchesFunc-16
Summary: K2-MatchesFunc-16
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 11:11 UTC by Michael Kay
Modified: 2013-06-13 10:23 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2007-04-13 11:11:53 UTC
The validity of this expression hinges on the rules for use of "-" within a character class expression. The rules for this have a tortuous history and there are still bugs open against the XML Schema spec (see bug #1889)

Currently the grammar rule

[17] charRange ::=  seRange | XmlCharIncDash 

states that hyphen is permitted in the context used in this example.

Below this, the text (a) incorrectly states that the grammar is ambiguous, (b) in bullet 1 says that hyphen is not a valid character range (which flatly contradicts the grammar), and (c) in bullet 3 says that hyphen is a valid character range if it appears and the beginning or end of a positive character group (without saying what it means: on one interpretation this hyphen is at the end of a positive character group; it just doesn't happen to be the longest-possible positive character group).

So the schema spec here is a mess and is essentially untestable until they sort this out.
Comment 1 Frans Englich 2007-05-23 09:11:19 UTC
This test is disabled now.