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

Re: Import/Include question

From: Khaled Noaman <knoaman@ca.ibm.com>
Date: Thu, 17 Jan 2002 08:44:55 -0500
Message-ID: <3C46D557.4F31BFDB@ca.ibm.com>
To: ht@cogsci.ed.ac.uk
CC: Jeni Tennison <jeni@jenitennison.com>, xmlschema-dev@w3.org

Hi Henry,

Does that mean that the following is not considered a circular import:

Schema 'A' imports Schema 'B'
Schema 'B' imports Schema 'C'
Schema 'C' imports Schema 'A'.

Khaled

xmlschema-dev-request@w3.org wrote:

> Hi Henry,
>
> >> Yes. When Schema A or Schema B get used, the schema validator
> >> constructs, in memory, one big schema that includes everything from
> >> Schema A, Schema B and Schema C. All the components can reference each
> >> other across physical file boundaries.
> >
> > Actually, not necessarily 'Yes'. Unless I'm confused, the target
> > namespace of schema document C must be different from that of schema
> > document A. So to allow references in schema document C to
> > components defined in schema document A, schema document C must
> > import schema document A's target namespace.
>
> Now I'm confused :) If you use Schema A then I thought you got a
> schema information item consisting of the components from:
>
>   Schema A
>   Schema B (through the import from Schema A)
>   Schema C (through the include from Schema B)
>
> If you use Schema B then I thought you got a schema information item
> consisting of the components from:
>
>   Schema B
>   Schema C (through the include from Schema B)
>   Schema A (through the import from Schema B)
>
> I thought that what was important when resolving QName references was
> not the physical document, but rather the schema components of the
> schema information item during validation. But it wouldn't surprise me
> if I've missed something in the Rec?
>
> Cheers,
>
> Jeni
>
> ---
> Jeni Tennison
> http://www.jenitennison.com/
Received on Thursday, 17 January 2002 08:45:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT