<?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>4114</bug_id>
          
          <creation_ts>2006-12-31 18:31:07 +0000</creation_ts>
          <short_desc>RegexTest_24</short_desc>
          <delta_ts>2010-01-26 11:27:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema Test Suite</product>
          <component>Microsoft tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4015</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>metadata update confirmed 2010-01-26</status_whiteboard>
          <keywords></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="Henry S. Thompson">ht</assigned_to>
          
          
          <qa_contact name="XML Schema Test Suite mailing list">public-xml-schema-testsuite</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13292</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-31 18:31:07 +0000</bug_when>
    <thetext>In the Microsoft regex tests, test RegexTest_24 has the following in the schema:

&lt;xs:pattern value=&apos;{5&apos;/&gt;

The metadata describes this as valid.

This reveals a problem in the specification. The specification says in the text:

(1) An atom is either a ·normal character·, (or other options that aren&apos;t relevant here)

(2) A normal character is any XML character that is not a metacharacter. 

(3) A metacharacter is either ., \, ?, *, +, {, } (, ), [ or ].

This would imply that the character &quot;{&quot; cannot be used without escaping, making the above regex invalid.

However, the grammar has:

[10]   	Char ::= [^.\?*+()|#x5B#x5D]

which permits &quot;{&quot; and &quot;}&quot; without escaping, making the above regex valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13293</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-31 18:35:43 +0000</bug_when>
    <thetext>(Note that the English text and the grammar also disagree about whether &quot;|&quot; is a normal character or a metacharacter).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20679</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-21 13:15:03 +0000</bug_when>
    <thetext>Bug #5778 has been raised against the spec on this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31229</commentid>
    <comment_count>3</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-01-26 11:27:13 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>