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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   using schemaLocation to point multiple same namespace schemas

[ Lists Home | Date Index | Thread Index ]

Dear All,

I'm sure this question been asked before, sorry!

Is it possible to use xsi:schemaLocation within an instance document
to import two or more same namespace schema(s)?

ex: xsi:schemaLocation="http://abc/lib lib1.xsd
                        http://abc/lib lib2.xsd
                        http://abc/lib lib3.xsd">

So that, there is no need to use any prefix when referencing any
libx.xsd elements/attributes.  The idea is, lib.xsd (can be a set 
of type libraries or elements) is getting too big, therefore, it 
got separated by lib1.xsd, lib2.xsd, ...

By using "include" the above works since include will bring in
the additioanal schemas into the same namespace. However, by
using schemaLocation with multiple same namespace schemas seems 
like complaining about re-defining the same namespace.  I know
it works by using different namespaces.

I really want to use schemaLocation to reference multiple schemas
for the same namespace from instance document, this way I can pick 
and choose which ever libx.xsd that I want to work with instead of 
hard coding them using "include" from a top-level schema.

I'm very much appreciated for any hints and pointers!

Best regards,

--Wo Chang





 

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

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