W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > June 2012

[Bug 17617] New: should 'over021.bad.xsd' be valid?

From: <bugzilla@jessica.w3.org>
Date: Wed, 27 Jun 2012 09:29:50 +0000
To: public-xml-schema-testsuite@w3.org
Message-ID: <bug-17617-1590@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17617

           Summary: should 'over021.bad.xsd' be valid?
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Saxon tests
        AssignedTo: cmsmcq@blackmesatech.com
        ReportedBy: xml.dev@altova.com
         QAContact: public-xml-schema-testsuite@w3.org


Test 'over021.bad.xsd' of set 'Override' overrides the same component within
the same <xs:override> 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:

<xs:override schemaLocation="over019a.xsd">
  <xs:element name="doc" type="xs:date"/>
  <xs:element name="doc" type="xs:time"/>
</xs:override>

to:

<xs:override schemaLocation="over019a.xsd">
  <xs:element name="doc" type="xs:date"/>
</xs:override>
<xs:override schemaLocation="over019a.xsd">
  <xs:element name="doc" type="xs:time"/>
</xs:override>

then the transformation runs twice and element declaration "doc" is duplicate
causing sch-props-correct.2 to fail. But with only one <xs:override> the
transformation only runs once and selects the first "doc" element declaration.

Best regards,
Andreas Meissl

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 27 June 2012 09:29:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 09:29:58 GMT