W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2004

Indirect imports (XML Spy versus XERCES)

From: David Kruppke <kruppke@gefeg.com>
Date: Mon, 5 Jul 2004 10:59:55 +0200
To: <xmlschema-dev@w3.org>

Hi all,

Suppose the following example:

schema importininclude.xsd
<xs:schema ... targetnamespace="A">
  <xs:element name="A"/>

schema include.xsd
<xs:schema targetnamespace="B">
  <xs:import namespace="A" schemaLocation="importininclude.xsd"/>

schema main.xsd
<xs:schema targetnamespace="B" xmlns:px="A">
  <xs:include schemaLocation="include.xsd"/>
  <xs:element ref="px:A"/>

XML Spy is able to handle such an "indirect" import, they use an
"xs:include" quasi as a text replacement and I think that is OK.

XERCES needs the xs:import in main.xsd in order to know "px:A".

Does anybody know a W3C rule for that??

Thanks in advance

Received on Wednesday, 7 July 2004 14:50:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:22 UTC