<?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>4010</bug_id>
          
          <creation_ts>2006-11-24 16:31:18 +0000</creation_ts>
          <short_desc>Regex tests using a{,2}</short_desc>
          <delta_ts>2010-02-02 15:12:25 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>metadata update and schema fix confirmed 2008-11-01</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>13016</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-11-24 16:31:18 +0000</bug_when>
    <thetext>The following four tests use the regex syntax &quot;a{,2}&quot;. This syntax is not valid in XML Schema, but the tests are described as valid.

test-set  MS-Regex2006-07-15
tests     reC65 reC66 reC67 reC68</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13562</commentid>
    <comment_count>1</comment_count>
    <who name="Arthur De Magalhaes">arthurdm</who>
    <bug_when>2007-01-15 21:26:34 +0000</bug_when>
    <thetext>
This bug is also present in the following files:

msData/element/elemE001.xsd
msData/element/elemE002.xsd
msData/element/elemE003.xsd
msData/element/elemE004.xsd
msData/element/elemE005.xsd
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20640</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-20 14:48:57 +0000</bug_when>
    <thetext>Noted that in 1.0 there is actually a parse for this expression because &quot;{&quot; is a valid Char. (PCRE will try to interpret a quantifier as such if it can, and will treat it as an ordinary string otherwise.) But this would create an unacceptable incompatibility, and is not what the spec intended. This is confirmed by the Note:

Note:  The regular expression language in the Perl Programming Language [Perl] does not include a quantifier of the form S{,m}, since it is logically equivalent to S{0,m}. We have, therefore, left this logical possibility out of the regular expression language defined by this specification.

It may be necessary to fix the spec. Raised bug #5778.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20642</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-20 15:00:42 +0000</bug_when>
    <thetext>*** Bug 4055 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20643</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-20 15:09:41 +0000</bug_when>
    <thetext>For the re tests, decided to change the metadata to indicate that the schema is invalid. For the element tests, decided to change the schema documents to use a valid regex (change {,5} to {0,5}) as this retains the intent of the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31398</commentid>
    <comment_count>5</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-02 15:12:25 +0000</bug_when>
    <thetext>*** Bug 4145 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>