<?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>11897</bug_id>
          
          <creation_ts>2011-01-27 20:07:09 +0000</creation_ts>
          <short_desc>Invalid particle restriction in all237</short_desc>
          <delta_ts>2011-10-21 16:38:02 +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>Saxon tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</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>
          <cc>mike</cc>
          
          <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>44812</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2011-01-27 20:07:09 +0000</bug_when>
    <thetext>saxonData/All/all237.xsd is meant to be a test for valid particle restriction.

The type &quot;b&quot; has (&quot;one&quot;, &quot;two&quot;, and &quot;three&quot; are wildcard namespaces):

( (one|two){5,U} &amp; three{0,2} )

and the restriction type &quot;r&quot; has

( one{3,U} &amp; (two|three){2,2} )

Now it seems a sequence of 3 &quot;one&quot;s and 2 &quot;three&quot;s is allowed by &quot;r&quot; but not &quot;b&quot;. Suggest to change &quot;one&quot; in &quot;r&quot; to {5,U}.

Attached below is the offending fragment:

    &lt;xs:complexType name=&quot;b&quot;&gt;
       &lt;xs:all&gt;     
         &lt;xs:any namespace=&quot;http://one.uri/ http://two.uri/&quot; minOccurs=&quot;5&quot; maxOccurs=&quot;unbounded&quot;/&gt;
         &lt;xs:any namespace=&quot;http://three.uri/&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;2&quot;/&gt;
       &lt;/xs:all&gt;
    &lt;/xs:complexType&gt;
    
    &lt;xs:complexType name=&quot;r&quot;&gt;
      &lt;xs:complexContent&gt;
        &lt;xs:restriction base=&quot;b&quot;&gt;
         &lt;xs:all&gt;     
           &lt;xs:any namespace=&quot;http://one.uri/&quot; minOccurs=&quot;3&quot; maxOccurs=&quot;unbounded&quot;/&gt;
           &lt;xs:any namespace=&quot;http://two.uri/ http://three.uri/&quot; minOccurs=&quot;2&quot; maxOccurs=&quot;2&quot;/&gt;
         &lt;/xs:all&gt;
        &lt;/xs:restriction&gt;
      &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45172</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-02-07 10:58:22 +0000</bug_when>
    <thetext>Agreed.

The existing test has been renumbered all244.n.xsd and classified as invalid; a corrected version of all237.xsd is now registered as valid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>