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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Multiple include

[ Lists Home | Date Index | Thread Index ]

It can cause problems and xerces will complain (depending on the 
version).  Note the scenerio you have outlined does not cause a problem 
until you also include B and or C into A. It is better to avoid this 
situation by designing so that all schema are included only once.

To do this you will need to create additional 'proxy' schema to do the 
including for each document level schema you have.

If A needs components from B, C, D, and G
Then create an additional schema Aa that includes A, B,C,D, and G.

You can do the same thing for B, C and D.

The instance document would then need to point to Aa.


At 01:00 PM 1/29/03 +0000, PHDB _ wrote:
>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
>       |
>       |
>       |-D.xsd<--G.xsd
>i.e. if G.xsd is included several times indirectly in A.xsd, does it cost 
>time at parsing or is it well handled by Xerces ?
>NB : All Schemas are in the same namespace...
>MSN Search, le moteur de recherche qui pense comme vous !
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>To subscribe or unsubscribe from this list use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>

Rick Taylor
XML Developer
PPDM Association


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS