Multiple imports for the same name space?
Posted: Thu May 26, 2005 9:44 pm
I have an XML and modular schema that validate under XMLSpy. When I attempt to validate them under Oxygen6 it appears that the second, third, ... imports within an XSD for the same namespace are ignored as I get pairs of the form
i.e., Others.xsd (in a different namespace) contains a sequence like
Code: Select all
cannot resolve the name 'prefix:SchemaType' to a(n) 'type definition' component
cannot resolve the name 'prefix:SchemaType' to a(n) 'simpleType definition' component
Code: Select all
<xs:schema targetNamespace="http://domain.tld/OTHERS"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://domain.tld/OTHERS"
xmlns:prefix="http://domain.tld/PREFIX">
<xs:import namespace="http://domain.tld/PREFIX" schemaLocation="http://domain.tld/PREFIX/Schema1.xsd"/>
<xs:import namespace="http://domain.tld/PREFIX" schemaLocation="http://domain.tld/PREFIX/Schema2.xsd"/>
<xs:import namespace="http://domain.tld/PREFIX" schemaLocation="http://domain.tld/PREFIX/Schema3.xsd"/>
...