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

RE: Including multiple schemas - duplicate name errors

  • From: "David E. Cleary" <davec@p...>
  • To: Cheryl_Gielau@c..., xml-dev@l...
  • Date: Tue, 21 Aug 2001 15:52:34 -0400

error error duplicate global type
> Sure it's overkill, but if you plan
> to extend the message set, it's
> possible to run into this situation
> again and again.

Well, I'm a firm believer that namespaces are immutable once published. Any
extensions to the message set would rev a namespace too. Also, I would treat
common types a little differently. I would create a schema that has no
targetNamespace and only include type definitions in it. Then, when the get
included into other schemas, they get brought into the namespace of the
including schema. Because only type definitions are in this schema, there is
no problem extending it with new message types.

Your problem is a little different because you not only have common types,
but you also have common elements. One solution is to use local element
declarations. Unless these common elements have a requirement that they are
root, there is no need to make them global. Types are stored in a single
file, so while there is some introduction of human error by having to
declare common elements multiple times in different contexts, it is
managable.

It may be that the best solution for your case is a schema file for each
common element. However, it isn't a problem I've given alot of thought to,
so I do not have anything I would consider a "best practice".

Hint to Roger. You may want to capyure this thread.<G>

Dave


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.