W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > December 2006

[Bug 4114] RegexTest_24

From: <bugzilla@wiggum.w3.org>
Date: Sun, 31 Dec 2006 18:31:08 +0000
CC:
To: public-xml-schema-testsuite@w3.org
Message-Id: <E1H15Se-0002b3-GY@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:55 GMT