Re: what schema to include?

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