import
ignored, when importing second XSD into the same namespace #1028
Open
Description
I have this document and an XSD (linked from it from schemaLocation).
Now, the XSD imports 2 other XSDs with the same targetNamespace:
<xs:import namespace="http://dia.gov.cz/ns/spolecne-casti-elektronickych-dokumentu/osoby" schemaLocation="https://ofn.gov.cz/společné-části-elektronických-dokumentů/2024-10-04/schémata/osoby/osoba-ve-vztahu-k-dokumentu.xsd"/>
<xs:import namespace="http://dia.gov.cz/ns/spolecne-casti-elektronickych-dokumentu/osoby" schemaLocation="https://ofn.gov.cz/společné-části-elektronických-dokumentů/2024-10-04/schémata/osoby/fyzická-osoba-ve-vztahu-k-dokumentu.xsd"/>
The XSDs have both the same targetNamespace and contain no conflicting definitions. Nevertheless, the second import is ignored, resulting in an error:
because that type is defined in the second imported XSD. When I comment out the first import, the second starts working.
This should be legal in XML Schema, and other validators like Altova work fine with it.
Metadata
Assignees
Labels
No labels