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

Re: Question about xs:import

From: <noah_mendelsohn@us.ibm.com>
Date: Tue, 24 Sep 2002 09:41:18 -0400
To: Jeni Tennison <jeni@jenitennison.com>
Cc: Ryan.Barr@ejgallo.com, xmlschema-dev@w3.org
Message-ID: <OFA88A08D2.A0A8DD17-ON85256C3E.004B0234@lotus.com>

Actually, I think Jeni's answer is right in practice, but not in theory 
(and that's rare, she's usually right all around.)  schemaLocations are 
hints.  So if you have two for a given namespace in the instance, your 
schema processor is free to follow one, the other, both, or neither.  In 
practice, most processors would follow at most the first.   Furthermore, 
it would be illegal to have conflicting definitions or declarations, so 
unless you'd carefully written the two documents to be imported together, 
it's unlikely that processing would proceed without error as the second 
one was brought in.  I don't believe it's strictly an error to put 
together schemas for the same namespace from multiple documents, but any 
uses I can imagine would be highly specialized and would be unlikely to be 
implemented in the sort of "off the shelf" validators that most of us are 
using.  Thanks very much.

Noah Mendelsohn                              Voice: 1-617-693-4036
IBM Corporation                                Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
Received on Tuesday, 24 September 2002 09:44:50 UTC

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