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

Re: Multiple xsd:imports on the same namespace

  • To: xml-dev@l...
  • Subject: Re: Multiple xsd:imports on the same namespace
  • From: David Sheldon <xmldev@d...>
  • Date: Fri, 11 Oct 2002 12:31:07 +0100
  • Resent-date: Mon, 14 Oct 2002 14:47:05 +0100
  • Resent-from: dws@d...
  • Resent-message-id: <E1815Yn-0006Zs-00@r...>
  • Resent-to: xml-dev@l...
  • User-agent: Mutt/1.2.5i

multiple xsd
We have been asked to work with some schemas where the definition of a
namespace is split between several schema documents, each defining a
subset of the namespace. An example of what I mean is:

 schemaA.xsd  defines namespaceA, and imports both schemaB.xsd and
 schemaC.xsd into namespaceB. It then defines an element of each of the
 types defined in schemas B and C, in namespaceB.

These files can be downloaded from
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=3312   

Xerces (J and C) only uses the first <xsd:import> for each namespace. It
ignores subsequent ones, leading to problems if you, as in this example,
have multiple schemas together defining elements in a schema without a
root schema for the element.

Having reported this as a bug in Xerces J[1], it was pointed out that
the spec makes supporting multiple imports into the same namespace up to
the processor. Further the comment made was that they believed that they
were encouraging better Schema authoring practice by disallowing this. 

What do people here think? Can anyone suggest a way of validating
documents against these schemas?

David

[1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13193

-- 
David Sheldon, Client Services        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


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.