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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Thursday, 17 January 2002 04:23:12 GMT

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