[Bug 4466] K2-MatchesFunc-1

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4466

           Summary: K2-MatchesFunc-1
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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.

Received on Friday, 13 April 2007 11:11:56 UTC