This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11765 - Definitions of \i and \c in regular expressions
Summary: Definitions of \i and \c in regular expressions
Status: RESOLVED DUPLICATE of bug 15646
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.0 only
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on: 15646 11421
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-14 19:41 UTC by C. M. Sperberg-McQueen
Modified: 2012-01-20 17:48 UTC (History)
2 users (show)

See Also:


Attachments

Description C. M. Sperberg-McQueen 2011-01-14 19:41:39 UTC
+++ This bug was initially created as a clone of Bug #11421, which raised the issue against 1.1.  This bug is to enable us to track the issue w.r.t. 1.0 and a possible 1.0 3E +++

The definition of \c is straightforward enough:

the set of name characters, those ·matched· by NameChar

where NameChar is a link to a production in the XML 1.1 specification.

The definition of \i by contrast is rather strange:

the set of initial name characters, those ·matched· by NameStartChar in [XML] or by Letter | '_' | ':' in [XML 1.0]

How are we to read this? I don't think "or" here means "the union of these two sets of characters"; I think it means use one definition if you're using XML 1.0, a different definition if you are using XML 1.1. But why doesn't it use NameStartChar in both cases? What seems to have happened is that in XML 1.0 ed 4 and earlier, names were defined to start with (Letter | '_' | ':'), but in XML 1.0 ed 5, they are defined to start with NameStartChar (which is a larger set of characters). So we have chosen a definition that fixes \i to the pre-5th-edition of XML names, while moving \c forward to the definition used in 1.0ed5 and 1.1. This can't be right. I would suggest aligning both character classes with the definitions of XML names as they appear in XML 1.0 ed 5 and XML 1.1.
Comment 1 C. M. Sperberg-McQueen 2012-01-20 17:48:31 UTC

*** This bug has been marked as a duplicate of bug 15646 ***