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

Re: Import/Include question

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 17 Jan 2002 09:23:05 +0000
Message-ID: <154866725395.20020117092305@jenitennison.com>
To: Khaled Noaman <knoaman@ca.ibm.com>
CC: xmlschema-dev@w3.org
Hi Khaled,

> Schema 'A'
> -------------
> imports Schema 'B'
> Schema 'B'
> -------------
> includes Schema 'C'
> imports Schema 'A'
> Here is my question.
> Is it valid/allowed for Schema 'C' to refer to declearations defined
> in Schema 'A'?

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.

However, if you ever used Schema C on its own, or included or imported
it into a schema that didn't include or import Schema A, then the
references wouldn't be resolvable.



Jeni Tennison
Received on Thursday, 17 January 2002 04:23:12 UTC

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