Re: Import/Include question

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 UTC