W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2007

RE: multiple namespaces

From: Michael Kay <mike@saxonica.com>
Date: Mon, 23 Apr 2007 17:31:17 +0100
To: "'Andrew Welch'" <andrew.j.welch@gmail.com>
Cc: <noah_mendelsohn@us.ibm.com>, <xmlschema-dev@w3.org>
Message-ID: <010e01c785c4$d172bbb0$6401a8c0@turtle>

> 
> Ahh ok.  Would there be three instances then: A -> B -> A 
> (two instances of A, so no circular definition) ?

No, the system has to work out when it sees "import A" that it already knows
about A and doesn't need to load it again - just like import in Java. (This
can cause complications if you give a location hint that doesn't match the
URI where the existing A components were loaded from - are you referring to
another copy of the same schema document, or to another schema document for
different components in the same namespace? So it's best to stick to a
one-to-one relationship between schema documents and namespaces if you can.)

Michael Kay
http://www.saxonica.com/
Received on Monday, 23 April 2007 16:31:27 GMT

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