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

xsd:import

From: zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN <michael.marchegay@rd.francetelecom.com>
Date: Tue, 9 Jul 2002 15:27:19 +0200
Message-ID: <0489A7888F080B4BA73B53F7E145F29A1B0AE7@LANMHS20.rd.francetelecom.fr>
To: <xmlschema-dev@w3c.org>

Hello all, 

I have a question concerning importation: if two schema have the same targetNamespace, can they be both imported by a third schema?

Example:
<!--A.xsd-->
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"	
	targetNamespace="http://foo.com/A.xsd">
	<xsd:import namespace="http://foo.com/foo" schemaLocation="B.xsd"/>
	<xsd:import namespace="http://foo.com/foo" schemaLocation="C.xsd"/>
	<xsd:element name="e1" type="xsd:integer"/>
</xsd:schema>

<!--B.xsd-->
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://foo.com/foo">
	<xsd:element name="e2" type="xsd:integer"/>
</xsd:schema>

<!--C.xsd-->
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://foo.com/foo">
	<xsd:element name="e3" type="xsd:integer"/>
</xsd:schema>


Thank you,

MichaŽl.

--
MichaŽl Marchegay, Stagiaire France Telecom R&D du 11/02/2002 au 26/07/2002
Sous la responsabilitť d'Olivier Dubuisson
DTL/TAL - 22307 Lannion Cedex - France
Received on Tuesday, 9 July 2002 09:27:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC