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
To: public-xml-schema-testsuite@w3.org
Message-Id: <E1H15Se-0002b3-GY@wiggum.w3.org>


           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

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

The metadata describes this as valid.

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

(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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:08:48 UTC