W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

RE: Mutual import

From: Michael Kay <mike@saxonica.com>
Date: Mon, 28 Mar 2005 18:59:24 +0100
To: "'Lev Pliner'" <pliner@sky.ru>, <xmlschema-dev@w3.org>
Message-ID: <E1DFyWP-0004sq-4c@frink.w3.org>

Yes, it's allowed. Perhaps it would be useful if you supply two complete
schema documents that you are having trouble with. 

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Lev Pliner
> Sent: 28 March 2005 15:43
> To: xmlschema-dev@w3.org
> Subject: Mutual import
> 
> 
> Dear mail group members.
> 
> I eventually found that no xml schema validators available to 
> me (including 
> xmlspy, visual studio and online validators) let two xml 
> schemas to import 
> each other mutually. (The validator on w3.org crushes with it.)
> 
> Trying to look into the problem, I found the topic 
> http://lists.w3.org/Archives/Public/xmlschema-dev/2001Jun/0172
> .html in which 
> it is stated that mutual importing is allowed.
> 
> So, is it allowed for schemas A for namespace AA and B for 
> namespace BB to 
> import each other mutually in the following maner?
> 
> A.xsd:
> ....
> <xs:schema targetNamespace="AA" 
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:import namespace="BB" schemaLocation="B.xsd"/>
> ....
> 
> B.xsd:
> ....
> <xs:schema targetNamespace="BB" 
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:import namespace="AA" schemaLocation="A.xsd"/>
> .... 
> 
> 
> 
> 
Received on Monday, 28 March 2005 17:59:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT