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

Re: what schema to include?

From: Robin Berjon <robin.berjon@expway.fr>
Date: Thu, 24 Oct 2002 16:43:23 +0200
Message-ID: <3DB8070B.8050708@expway.fr>
To: Evyatar Kafkafi <Evyatar@orsus.com>
CC: Jeni Tennison <jeni@jenitennison.com>, xmlschema-dev@w3.org

Evyatar Kafkafi wrote:
> Yes, but there are still at least 2 cases when I don't have the URL:
> 1) suppose a.xsd and b.xsd are not files. Suppose I supply them as 
 > InputSource in my custom Entity Resolver (They are in my database as
 > strings). When my Entity Resolver is requested to resolve c.xsd, how
 > should it know which one?

Your entity resolver ought to know the URI of a.xsd and b.xsd, and use 
that to resolve the path to c.xsd.

> 2) if in a.xsd and in b.xsd I have <xsd:include schemaLocation="c.xsd"/> 
 > - where is the URL ?

Right there. If a.xsd is in /foo/A/ and b.xsd is in /foo/B/ then c.xsd 
being a relative reference your resolver ought to find it in 
/foo/A/c.xsd in the first case and /foo/B/c.xsd in the second.

Robin Berjon <robin.berjon@expway.fr>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488
Received on Thursday, 24 October 2002 10:44:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC