<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11765</bug_id>
          
          <creation_ts>2011-01-14 19:41:39 +0000</creation_ts>
          <short_desc>Definitions of \i and \c in regular expressions</short_desc>
          <delta_ts>2012-01-20 17:48:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.0 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15646</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>15646</dependson>
    
    <dependson>11421</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44358</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-01-14 19:41:39 +0000</bug_when>
    <thetext>+++ 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 | &apos;_&apos; | &apos;:&apos; in [XML 1.0]

How are we to read this? I don&apos;t think &quot;or&quot; here means &quot;the union of these two sets of characters&quot;; I think it means use one definition if you&apos;re using XML 1.0, a different definition if you are using XML 1.1. But why doesn&apos;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 | &apos;_&apos; | &apos;:&apos;), 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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62945</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2012-01-20 17:48:31 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 15646 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>