First of all, [EMAIL PROTECTED] is a better place to ask
questions like this.
> Is it a problem if I have the following including schema ?
No problem. Such inclusion is allowed.
> does it cost time at parsing or is it well handled by Xerces ?
In most cases, G.xsd won't be process multiple times. (There could be
exceptions though.)
Alternative: since all schema files contribute to the same namespace, they
can refer to each other without explicit including. That is, instead of
having B/C/D/E all include G, you can include G in A.
> Is it allowed to have a mutual inclusion ?
Yes.
HTH,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
"PHDB _"
<phdb2000@hotmail To: [EMAIL PROTECTED]
.com> cc:
Subject: Multiple include
01/30/2003 11:24
AM
Please respond to
xerces-j-dev
Hi !
I have a little question about multiple "include" in XML Schema.
Is it a problem if I have the following including schema ?
|-B.xsd<--G.xsd
|
|-C.xsd<--G.xsd
|
A.xsd<---D.xsd<--G.xsd
|
|-E.xsd<--G.xsd
i.e. if G.xsd is included several times indirectly in A.xsd through its
inclusion in B C D and E, does it cost time at parsing or is it well
handled
by Xerces ?
NB : G.xsd is a noNamespace Schema (it contains baseTypes that re-use
often)
and all other Schemas are in the same namespace...
TieBreaker :
Is it allowed to have a mutual inclusion ? i.e. A.xsd includes B.xsd and
B.xsd includes A.xsd (A and B are in the same namespace) ?
Thks
_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]