<?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>17617</bug_id>
          
          <creation_ts>2012-06-27 09:29:54 +0000</creation_ts>
          <short_desc>should &apos;over021.bad.xsd&apos; be valid?</short_desc>
          <delta_ts>2015-10-05 00:56: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>Saxon tests</component>
          <version>2006-11-06</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Altova XML Developers">xml.dev</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>69454</commentid>
    <comment_count>0</comment_count>
    <who name="Altova XML Developers">xml.dev</who>
    <bug_when>2012-06-27 09:29:54 +0000</bug_when>
    <thetext>Test &apos;over021.bad.xsd&apos; of set &apos;Override&apos; overrides the same component within the same &lt;xs:override&gt; element twice. I agree from a logical point of view, that this should be invalid. But which clause in the spec makes it invalid?

If the schema is changed from:

&lt;xs:override schemaLocation=&quot;over019a.xsd&quot;&gt;
  &lt;xs:element name=&quot;doc&quot; type=&quot;xs:date&quot;/&gt;
  &lt;xs:element name=&quot;doc&quot; type=&quot;xs:time&quot;/&gt;
&lt;/xs:override&gt;

to:

&lt;xs:override schemaLocation=&quot;over019a.xsd&quot;&gt;
  &lt;xs:element name=&quot;doc&quot; type=&quot;xs:date&quot;/&gt;
&lt;/xs:override&gt;
&lt;xs:override schemaLocation=&quot;over019a.xsd&quot;&gt;
  &lt;xs:element name=&quot;doc&quot; type=&quot;xs:time&quot;/&gt;
&lt;/xs:override&gt;

then the transformation runs twice and element declaration &quot;doc&quot; is duplicate causing sch-props-correct.2 to fail. But with only one &lt;xs:override&gt; the transformation only runs once and selects the first &quot;doc&quot; element declaration.

Best regards,
Andreas Meissl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69533</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-06-29 11:09:25 +0000</bug_when>
    <thetext>On a strict reading of the spec I think you might be correct that this is not an error.

However, the non-normative description of the transformation perhaps captures the intent: &quot;[if] O1 has a child E1 with the same element type and the same value for its name attribute, then D2′ has a copy of E1 in the location corresponding to E2&apos;s place in D2.&quot;, which most people would read as implying that if O1 has several such children, then D2&apos; has copies of all of them, which would produce an invalid schema.

So I think we should make this an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69544</commentid>
    <comment_count>2</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2012-06-29 16:07:38 +0000</bug_when>
    <thetext>On discussion the WG believes that this an erratum is needed to make this situation an error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>