W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2123] R-134: Treatment of ^ in regexes

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 16:03:19 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDlLT-0008Fk-9t@wiggum.w3.org>

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

           Summary: R-134: Treatment of ^ in regexes
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


Appendix F says: 

"All XML characters are valid character ranges, except as follows:...

The ^ character is only valid at the beginning of a positive character group if 
it is part of a negative character group; ...". 

However, the EBNF doesn't seem consistent with this. Consider 

[^X] 

This is ambiguous wrt the EBNF, since "^" is an XmlCharIncDash and thus a 
charRange: according to the EBNF it could be a powCharGroup containing "^" 
and "X" or a negCharGroup containing "X". Consider also 

[^] 

According to the EBNF, this is unambiguously a posCharGroup containing "^", but 
this is inconsistent with the prose. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0007.html
Received on Friday, 9 September 2005 16:03:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT