<?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>11421</bug_id>
          
          <creation_ts>2010-11-28 17:27:58 +0000</creation_ts>
          <short_desc>Definitions of \i and \c in regular expressions</short_desc>
          <delta_ts>2012-01-20 17:40:48 +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.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15646</blocked>
    
    <blocked>11765</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</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>42822</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-11-28 17:27:58 +0000</bug_when>
    <thetext>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>44244</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-01-11 22:57:38 +0000</bug_when>
    <thetext>Proposed change:  delete the words

    or by Letter | &apos;_&apos; | &apos;:&apos; in [XML 1.0]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44357</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-01-14 19:40:16 +0000</bug_when>
    <thetext>This change has now been made in the status-quo documents at

  http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.diff.html
  http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.diff-1.0.html
  http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.diff-wd.html
  (member-only links)

Accordingly, I&apos;m marking the bug resolved.

Michael, would you do the honors, please?  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>