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

Re: Multiple <import> into same namespace?

From: Noah Mendelsohn <noah_mendelsohn@us.ibm.com>
Date: Thu, 10 Jan 2002 08:54:12 -0500
To: "ht" <ht@cogsci.ed.ac.uk>
Cc: "Simon.Cox" <Simon.Cox@csiro.au>, "xmlschema-dev" <xmlschema-dev@w3.org>
Message-ID: <OFC393685D.4ECD26D3-ON85256B3D.004D6AE6@pok.ibm.com>

I wonder whether we should open an issue leading to a clarification of the
rules in the Recommendation.  I.e. multiple <import>s for same NS are
allowed but redundant except insofar as they carry schemaLocations.   I
think the processor has complete discretion in using schemaLocation, but
should we signal common behavior (after all, that's what having the hint is
in the first place)?

Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142

                      k (Henry S.               To:      Simon.Cox@csiro.au                                                            
                      Thompson)                 cc:      xmlschema-dev@w3.org                                                          
                      Sent by:                  Subject: Re: Multiple <import> into same namespace?                                    
                      01/10/02 04:58 AM                                                                                                

Simon.Cox@csiro.au writes:

> A schema-factoring question.
> Is it OK to have more than one <import > with
> the same value for the namespace, but different
> values of the schemaLocation?
> The behaviour of processors in repsonse
> to schemaLocation hints is not well defined.
> So how should one to respond to being told to
> look in two places for components in a single namespace?
> I'd like it to construct a union of the components.
> Is this a reasonable assumption?

XSV will ignore all xs:imports with the same namespace after the
first successful one, as the REC allows it to.

The safe way to do what you want is to define a stub schema document
in the imported namespace which consists of two (or more) xs:includes
of the documents you want, and then use _that_ schema doc as the
schemaLoc of a single xs:import.

  Henry S. Thompson, HCRC Language Technology Group, University of
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
     Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
       URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 10 January 2002 09:11:24 UTC

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