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

using schemaLocation to point multiple same namespace schemas

  • To: "'XML'" <xml-dev@l...>
  • Subject: using schemaLocation to point multiple same namespace schemas
  • From: "Wo Chang" <wchang@n...>
  • Date: Wed, 4 Sep 2002 15:22:45 -0400
  • Reply-to: "Wo Chang" <wchang@n...>

multiple namespace schema
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


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.