[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Multiple include

include in xml
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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.