<?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>4147</bug_id>
          
          <creation_ts>2007-01-03 17:20:07 +0000</creation_ts>
          <short_desc>MS Particles tests: particlesV020</short_desc>
          <delta_ts>2012-12-04 00:52:21 +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 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>MSM to fork a duplicate test for 1.1 but with valid outcome.</status_whiteboard>
          <keywords>disputedTest</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="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>David_E3</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>13342</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-03 17:20:07 +0000</bug_when>
    <thetext>In the Microsoft Particles test set, test 

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

the schema is described as invalid. XSV also reports it invalid, but I am not convinced this is supported by a reading of the spec.

In private correspondence, Henry Thompson suggested that R is not validly derived from B, because the type of bar is derived from the type of SUB by extension, not by restriction. However, the rule:

2.1 Any top-level element declaration particle (in R or B) which is the {substitution group affiliation} of one or more other element declarations and whose ·substitution group· contains at least one element declaration other than itself is treated as if it were a choice group whose {min occurs} and {max occurs} are those of the particle, and whose {particles} consists of one particle with {min occurs} and {max occurs} of 1 for each of the declarations in its ·substitution group·.

suggests that it boils down to a question of whether 

&lt;element name=&quot;bar&quot; type=&quot;x:c2&quot;/&gt;

is validly derived from 

&lt;choice&gt;
  &lt;element name=&quot;SUB&quot; type=&quot;x:c1&quot;/&gt;
  &lt;element name=&quot;bar&quot; type=&quot;x:c2&quot;/&gt;
&lt;/choice&gt;

and it would seem that it is, regardless of the relationship of x:c1 to x:c2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13798</commentid>
    <comment_count>1</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-24 18:31:58 +0000</bug_when>
    <thetext>Actually you have to wrap the derived element particle in a &lt;choice&gt; group itself to check a valid restriction as per Elt:All/Choice/Sequence -- RecurseAsIfGroup. So it comes down the question if 

&lt;choice&gt;
&lt;element name=&quot;bar&quot; type=&quot;x:c2&quot; maxOccurs=&quot;2&quot;/&gt;
&lt;/choice&gt;

is a valid restriction of:

&lt;choice maxOccurs=&quot;3&quot;&gt;
  &lt;element name=&quot;SUB&quot; type=&quot;x:c1&quot;/&gt;
  &lt;element name=&quot;bar&quot; type=&quot;x:c2&quot;/&gt;
&lt;/choice&gt;

which is clearly is not as the bar in the derived type is not a valid restriction of the one in the base type as it fails occurence range check.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31371</commentid>
    <comment_count>2</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-01-31 13:20:43 +0000</bug_when>
    <thetext>tending towards disputedTest. . .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>