<?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>4058</bug_id>
          
          <creation_ts>2006-12-09 20:12:44 +0000</creation_ts>
          <short_desc>elemZ028c - UPA violation</short_desc>
          <delta_ts>2009-01-13 17:24:26 +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 updated 2009-01-13</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>13117</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-09 20:12:44 +0000</bug_when>
    <thetext>In the Microsoft Element test set, test elemZ028c, the schema elemZ028c.xsd is described as valid but appears to violate UPA. Specifically, there is a conflict between elements a and b in:

&lt;xs:element type=&quot;xs:short&quot; substitutionGroup=&quot;b&quot; name=&quot;a&quot;/&gt;
&lt;xs:element type=&quot;xs:decimal&quot; name=&quot;b&quot;/&gt;
 
&lt;xs:complexType name=&quot;base&quot;&gt;
	&lt;xs:all&gt;
		&lt;xs:element ref=&quot;a&quot;/&gt;
		&lt;xs:element ref=&quot;b&quot;/&gt;
	&lt;/xs:all&gt;
&lt;/xs:complexType&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13118</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-09 20:40:38 +0000</bug_when>
    <thetext>Test elemZ028d suffers essentially the same problem, except that the compositor is xs:choice rather than xs:all.

(Saxon actually doesn&apos;t report a UPA violation in this case, it reports a violation of Element Declarations Consistent, but that&apos;s purely an accident of the order of checking the rules).

Schema elemZ028f.xsd, used in the following tests, shows the same problem:

   &lt;test group=&quot;elemZ028f1&quot; name=&quot;elemZ028f1&quot;/&gt;
   &lt;test group=&quot;elemZ028f1&quot; name=&quot;elemZ028f1.v&quot;/&gt;
   &lt;test group=&quot;elemZ028f2&quot; name=&quot;elemZ028f2&quot;/&gt;
   &lt;test group=&quot;elemZ028f2&quot; name=&quot;elemZ028f2.v&quot;/&gt;
   &lt;test group=&quot;elemZ028f3&quot; name=&quot;elemZ028f3&quot;/&gt;
   &lt;test group=&quot;elemZ028f3&quot; name=&quot;elemZ028f3.v&quot;/&gt;



</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13840</commentid>
    <comment_count>2</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-01-29 22:45:58 +0000</bug_when>
    <thetext>Agreed that the expected outcome of this test should be invalid. We are
following up with the WG to determine the process of updating the test suite.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20699</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-21 16:04:29 +0000</bug_when>
    <thetext>Agreed, these schemas are invalid and should be marked as such in the metadata.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>