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

RE: import

From: Dwivedi , Ajay Kumar <AjayKumar.Dwivedi@dresdner-bank.com>
Date: Tue, 9 Jul 2002 15:35:05 +0100
Message-ID: <81D792FDA471D21190DB0008C7A41A0601ED5C74@kbi01ea0.wwz1me.mail.dresdner.net>
To: "'zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN'" <michael.marchegay@rd.francetelecom.com>, xmlschema-dev@w3c.org

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

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