<?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>11859</bug_id>
          
          <creation_ts>2011-01-25 09:12:56 +0000</creation_ts>
          <short_desc>&quot;^&quot; is a valid regular expression</short_desc>
          <delta_ts>2011-03-20 17:36:36 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>davep</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>44699</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-01-25 09:12:56 +0000</bug_when>
    <thetext>G.1, in a Note, states:

The string &apos;^&apos; is unambiguous: the grammar recognizes it as a positive character group containing the character &apos;^&apos;.  But the grammatical derivation of the string violates the rule just given, so the string &apos;^&apos; must not be accepted as a regular expression.

The last phrase should read &quot;must not be accepted as a character group&quot;. The string &quot;^&quot; is fine as a regular expression; the problem being discussed is the interpretation of &quot;[^]&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46497</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-03-08 02:10:50 +0000</bug_when>
    <thetext>I think a simpler change would be to replace the initial and final references to &apos;^&apos; with references to &apos;[^]&apos;. 
Hmm.  Maybe not simpler (it requires other rewordings), but perhaps easier to follow in context.

To make it a formal proposal, I&apos;ll say:  make the second paragraph of the note read:

    The string &apos;[^]&apos; is unambiguous: the grammar recognizes it as a character 
    class expression containing a positive character group containing just 
    the character &apos;^&apos;.  But the grammatical derivation of the string violates 
    the rule just given, so the string &apos;[^]&apos; must not be accepted as a regular 
    expression.

In addition to changing &apos;^&apos; to &apos;[^]&apos; twice, this changes &apos;as a positive character group containing&apos; to &apos;as a character class expression containing a positive character group containing just&apos;.

The change suggested by MK would also work; I suggest an alternative because I&apos;m a little unhappy, now that my attention has been drawn to it, by the note&apos;s saying &quot;the grammar&quot; recognizes &apos;^&apos; as a positive character group.  It&apos;s true (or true-ish) in context, but if &apos;^&apos; is parsed against the regExp non-terminal (and regExp is after all the natural start symbol, if we are going to refer to &quot;the grammar&quot;), then, no, it won&apos;t be recognized as a positive character group.

This proposal has not been reviewed by the other editors but I&apos;m going to take the liberty of marking the issue needsReview anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46537</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2011-03-08 15:35:22 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; This proposal has not been reviewed by the other editors but I&apos;m going to take
&gt; the liberty of marking the issue needsReview anyway.

+1 (another editor)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46806</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-03-18 15:14:48 +0000</bug_when>
    <thetext>RESOLVED: adopt the proposal in comment #1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46864</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-03-20 14:43:45 +0000</bug_when>
    <thetext>The proposal in comment 1 has now been integrated into the status quo document.

Michael, if you would indicate your satisfaction with this result by closing the bug, or your dissatisfaction by reopening it?  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>