xsd:import

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