<?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>15618</bug_id>
          
          <creation_ts>2012-01-19 03:46:58 +0000</creation_ts>
          <short_desc>maxOccurs not allowed on openContent/any</short_desc>
          <delta_ts>2012-04-25 21:51:39 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>decided</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>David_E3</cc>
    
    <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>62879</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2012-01-19 03:46:58 +0000</bug_when>
    <thetext>Saxon test open042x.xsd has:

&lt;xs:openContent&gt;
     &lt;xs:any namespace=&quot;##other&quot; processContents=&quot;lax&quot; maxOccurs=&quot;unbounded&quot;/&gt;
&lt;/xs:openContent&gt;

But according to the Appendix A [1], &lt;xs:any&gt; under &lt;xs:openContent&gt; can&apos;t specify min/maxOccurs attributes.

(With irrelevant items omitted)

  &lt;xs:element name=&quot;openContent&quot; id=&quot;openContent&quot;&gt;
          &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;any&quot; minOccurs=&quot;0&quot; type=&quot;xs:wildcard&quot;/&gt;
          &lt;/xs:sequence&gt;
  &lt;/xs:element&gt;

  &lt;xs:complexType name=&quot;wildcard&quot;&gt;
      &lt;xs:extension base=&quot;xs:annotated&quot;&gt;
         &lt;xs:attributeGroup ref=&quot;xs:anyAttrGroup&quot;/&gt;
      &lt;/xs:extension&gt;
  &lt;/xs:complexType&gt;

where &quot;xs:anyAttrGroup&quot; doesn&apos;t allow min/maxOccurs attributes. These attributes are included in the &quot;xs:occurs&quot; group, which is referenced by the normal &lt;any&gt; element:

  &lt;xs:element name=&quot;any&quot; id=&quot;any&quot;&gt;
        &lt;xs:extension base=&quot;xs:wildcard&quot;&gt;
          &lt;xs:attributeGroup ref=&quot;xs:occurs&quot;/&gt;
        &lt;/xs:extension&gt;
  &lt;/xs:element&gt;

[1] http://www.w3.org/TR/xmlschema11-1/#normative-schemaSchema</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62942</commentid>
    <comment_count>1</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2012-01-20 17:01:19 +0000</bug_when>
    <thetext>Resolution: update the test to remove the maxOccurs attribute, and add a second &quot;negative&quot; test to check for this error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62944</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-01-20 17:48:23 +0000</bug_when>
    <thetext>Fixed as decided. open042 has been corrected; the error case is retained in test open048.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>