W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2001

how to determine which schema files to load

From: Schwarzhoff, Kelly <kelly.schwarzhoff@commerceone.com>
Date: Tue, 11 Sep 2001 09:37:00 -0700
Message-ID: <C1E0143CD365A445A4417083BF6F42CC979F0C@C1plenaexm07.commerceone.com>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Hi All,

In playing around with XSDL, the semantics of include and their relationship
with targetNamespaces is unclear.

Specifically, suppose one has a single targetnamespace (ex
"http://server/mynamespace") which consists of two schema files, "A" and
"B". "A" includes "B". 

When resolving a reference to a type in that namespace
("http//server/mynamespace), how does one know which schema file to load? It
seems there always is, for each target namespace, a "root" schema which
includes all the others and--directly or indirectly--includes others. But
how does one know which is the "root" schema versus the included ones, to
resolve? Generally, to resolve a type reference, on uses an Entity Resolver
(in sax, org.xml.sax.EntityResolver), but EntityResolvers should not have to
understand what is the root schema of a namespace versus the included
schemas.

Kelly
Received on Tuesday, 11 September 2001 12:35:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:51 GMT