OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: externalRef versus include

> Maybe the tutorial needs to say something about <externalRef> versus
> <include>, or at least this topic should be covered in the FAQ.

It sounds like a nice topic to cover in our FAQ. Or maybe we can have a
document that describes various techniques and discuss the use cases of
<externalRef> and <include> there.

> Am I right in assuming that the only circumstance where you would *have*
> to use <include> instead of <externalRef> is when you want to combine
> definitions from multiple grammars (using the "combine" attribute)?

I think <include> is also useful when

* modularizing a schema into many small pieces (like XHTML m12n.)
* you want to use multiple declarations in the included file and you
  don't need to worry about the name collision.

Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@sun.com

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC