<?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>4139</bug_id>
          
          <creation_ts>2007-01-02 22:25:27 +0000</creation_ts>
          <short_desc>MS ModelGroups test mgH014</short_desc>
          <delta_ts>2007-01-24 16:57:04 +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>INVALID</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="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>13331</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-02 22:25:27 +0000</bug_when>
    <thetext>In the Microsoft ModelGroups test set, test

&lt;test group=&quot;mgH014&quot; name=&quot;mgH014&quot;/&gt;

The expected result is that the schema is valid. However, the content model of the complex type foo is not a valid restriction of the content model of the type bar. The derived type permits empty content, but the base type does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13793</commentid>
    <comment_count>1</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-24 02:07:18 +0000</bug_when>
    <thetext>Under Element Declaration Schema Component [1], the spec says if the maxOccurs=minOccurs=0 for that element declaration that the schema component does not correspond to any component. In the test case you mentioned, the element e1 in the derived type (foo) has such a declaration for e1 inside the choice, e1 plays no part in the choice and should be stripped off the content model and it thus makes the choice non-emptiable and a valid restriction of bar.

[1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/structures-with-errata.html#Element_Declaration_details
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13797</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-24 16:57:04 +0000</bug_when>
    <thetext>Fair enough. It&apos;s not an intuitive interpretation but that does seem to be what the spec says.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>