[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Mutual import

From: Lev Pliner <pliner@sky.ru>
Date: Mon, 28 Mar 2005 20:42:54 +0600
Message-ID: <008801c533a4$6e77df50$4d0c72d9@lsp>
To: <xmlschema-dev@w3.org>
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:12:28 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.