[Bug 4114] RegexTest_24

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

           Summary: RegexTest_24
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Microsoft tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org


In the Microsoft regex tests, test RegexTest_24 has the following in the
schema:

<xs:pattern value='{5'/>

The metadata describes this as valid.

This reveals a problem in the specification. The specification says in the
text:

(1) An atom is either a ·normal character·, (or other options that aren't
relevant here)

(2) A normal character is any XML character that is not a metacharacter. 

(3) A metacharacter is either ., \, ?, *, +, {, } (, ), [ or ].

This would imply that the character "{" cannot be used without escaping, making
the above regex invalid.

However, the grammar has:

[10]    Char ::= [^.\?*+()|#x5B#x5D]

which permits "{" and "}" without escaping, making the above regex valid.

Received on Sunday, 31 December 2006 18:31:25 UTC