W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2001

Re: importing schemas

From: <Noah_Mendelsohn@lotus.com>
Date: Wed, 30 May 2001 10:10:50 -0400
To: Susan Lewis <susan@noonetime.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OF184DCD44.EBBC4195-ON85256A5C.004E010A@lotus.com>
>> Is it legal to import a schema which, 
>> in turn, imports another
>> schema? 


To clarify Ashok's answer: if you are combining schema documents for the 
same target namespace, you use <include>.  To reference constructions from 
a different target namespace, you <import> that namespace, possibly 
including a schemaLocation hint.  You can use <import> and <include> in 
any schema document, as appropriate.  You can re-include the same schema 
document repeatedly, thought some processors may take a small performance 
hit while ensuring that all the definitions and declarations are exactly 
the same. 

You cannot ever introduce conflicting definitions or declarations for the 
same component in a given validation (although <redefine> does allow you 
to use an early version of a component in defining an evolved one.)  

Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
Received on Wednesday, 30 May 2001 10:15:05 UTC

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