[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Multiple include
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. -rick 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 > | >A.xsd<---D.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... > >Thks > > >_________________________________________________________________ >MSN Search, le moteur de recherche qui pense comme vous ! >http://search.msn.fr/worldwide.asp > > >----------------------------------------------------------------- >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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|