<?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>4071</bug_id>
          
          <creation_ts>2006-12-12 15:54:00 +0000</creation_ts>
          <short_desc>particlesZ026 - duplicate attributes</short_desc>
          <delta_ts>2010-04-05 17:03:53 +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></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>
          <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>13143</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-12-12 15:54:00 +0000</bug_when>
    <thetext>In the Microsoft Particles test set, test group particlesZ026, the schema particlesZ026a.xsd has:

&lt;xs:complexType name=&quot;ItemType&quot; abstract=&quot;true&quot;&gt;
  &lt;xs:complexContent&gt;
    &lt;xs:extension base=&quot;StatementType&quot;&gt;
       &lt;xs:attribute name=&quot;StatementAssembly&quot; type=&quot;xs:string&quot;/&gt;
       &lt;xs:attribute name=&quot;StatementClass&quot; type=&quot;xs:string&quot;/&gt;
    &lt;/xs:extension&gt;
  &lt;/xs:complexContent&gt;
&lt;/xs:complexType&gt;

&lt;xs:complexType name=&quot;ManagedItemType&quot;&gt;
  &lt;xs:complexContent&gt;
    &lt;xs:extension base=&quot;ItemType&quot;&gt;
      &lt;xs:attribute name=&quot;Assembly&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
      &lt;xs:attribute name=&quot;Class&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
      &lt;xs:attribute name=&quot;StatementAssembly&quot; type=&quot;xs:string&quot; /&gt;
      &lt;xs:attribute name=&quot;StatementClass&quot; type=&quot;xs:string&quot;/&gt;
    &lt;/xs:extension&gt;
  &lt;/xs:complexContent&gt;
&lt;/xs:complexType&gt;

My reading of the spec is that this is invalid. The {attribute uses} on ManagedItemTypes consists of the union of the attributes defined in the two complexType declarations above. It&apos;s not defined exactly what &quot;union&quot; means (that is, how one decides whether two attribute uses are identical) but there is nothing in the spec to suggest eliminating attributes with duplicate names. The resulting schema component is therefore invalid under clause 5 of Schema Component Constraint: Complex Type Definition Properties Correct.

The test metadata reports this schema document as valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13889</commentid>
    <comment_count>1</comment_count>
    <who name="Zafar Abbas">zafara</who>
    <bug_when>2007-02-02 19:19:49 +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>20735</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-06-22 15:39:22 +0000</bug_when>
    <thetext>We concluded that the spec deliberately doesn&apos;t say whether these attribute uses are identical and therefore it is implementation-dependent whether this schema is valid. We think it is worth keeping the test because it probes this area where implementations can differ, but the expected results should allow both interpretations of the spec.

Leaving it open for now because it&apos;s not immediately clear how to fix the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32709</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-02-26 16:45:37 +0000</bug_when>
    <thetext>Noted that in 1.1 there is a &quot;scope&quot; property on the attribute declaration component which makes the two attribute declarations distinct, and therefore the attribute uses are distinct, and therefore this derivation-by-extension is definitely invalid.

However, the spec still isn&apos;t very explicit in describing how to form the &quot;union&quot; of attribute uses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32710</commentid>
    <comment_count>4</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-02-26 16:51:58 +0000</bug_when>
    <thetext>Resolution: Two versions of the test  particlesZ026; the one for 1.0 marked as
implementation-dependent, and the one for 1.1 marked as invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34556</commentid>
    <comment_count>5</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-04-05 16:57:56 +0000</bug_when>
    <thetext>Made stable 1.1-only copy w. invalid schema test and no instance test.  Marked 
original as 1.0-only, implDe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34557</commentid>
    <comment_count>6</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-04-05 17:03:53 +0000</bug_when>
    <thetext>Made stable 1.1-only copy w. invalid schema test and no instance test.  Marked 
original as 1.0-only, implDe</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>