<?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>2123</bug_id>
          
          <creation_ts>2005-09-09 16:03:19 +0000</creation_ts>
          <short_desc>R-134: Treatment of ^ in regexes</short_desc>
          <delta_ts>2009-04-21 19:21:33 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>cluster: regex</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <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>6054</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 16:03:19 +0000</bug_when>
    <thetext>Appendix F says: 

&quot;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; ...&quot;. 

However, the EBNF doesn&apos;t seem consistent with this. Consider 

[^X] 

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

[^] 

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

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0007.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6055</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 16:03:25 +0000</bug_when>
    <thetext>Note: R-134 was reopened at the Feb. 21 2003 telecon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7838</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-01-15 00:16:41 +0000</bug_when>
    <thetext>The WG classified this issue as a requirement at its telcon of 13 January 2006
and instructed the editors to prepare a proposal with the obvious fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11913</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-21 00:00:29 +0000</bug_when>
    <thetext>At the face to face meeting of January 2006 in St. Petersburg,
the Working Group decided not to take further action on this
issue in XML Schema 1.1.  (This issue was not discussed
separately; it was one of those which were dispatched by a
blanket decision that all other open issues would be closed
without action, unless raised again in last-call comments.)  Some
members of the Working Group expressed regret over not being able
to resolve all the issues dealt with in this way, but on the
whole the Working Group felt it better not to delay Datatypes 1.1
in order to resolve all of them.

This issue should have been marked as RESOLVED /WONTFIX at that
time, but apparently was not.  I am marking it that way now, to
reduce confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11940</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-21 14:17:21 +0000</bug_when>
    <thetext>Since bug 1889 has been reopened, we should probably reopen all of the issues
relating to the grammar of regular expressions, including this one. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20324</commentid>
    <comment_count>5</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-05-30 04:01:21 +0000</bug_when>
    <thetext>A wording proposal intended to resolve this issue (and some other 
regex-related issues) is at 
http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.b1889.html
(member-only link).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20338</commentid>
    <comment_count>6</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-05-31 01:57:47 +0000</bug_when>
    <thetext>The wording proposal mentioned in comment #5 was adopted by the WG
at its call today.  We believe it resolves the issue in full, and I am
accordingly marking the issue as resolved.

At the publication of the next working draft, the originator of the
comment (James Clark) should be notified and asked whether he
believes the issue has at last been resolved satisfactorily.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>