RE: import

Hi Michaël,
	Yes, multiple importing of the same namespace are allowed but
discouraged. However, Some processors may ignore your multiple imports of
the same namespace.

Read the NOTE: section at the end of 
Schema Representation Constraint: Import Constraints and Semantics for
details.

Cheers,
Ajay

> -----Original Message-----
> From: zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN
> [mailto:michael.marchegay@rd.francetelecom.com]
> Sent: Tuesday, July 09, 2002 6:57 PM
> To: xmlschema-dev@w3c.org
> Subject: 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 10:36:59 UTC