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

Re: Russian doll schemas stink? (was: Re: XML "Smell


xml smell

 >> Russian doll schemas... A veritable dung heap. I am overpowered already :-)
> Hang on a second... what about Russian doll schemas makes them an
> xml-smell? I mean, I can understand situations where openness and shared
> structure are goldmines for interoperability, but I can just as quickly
> think of 10-20 reasons why you would want to localize definitions.

Ah, I was about to concede there and loosen my definition by saying
_when_ they smell.. but that does not make an interesting argument :)

So, I can think of reasons to localize element definitions. I can also
think of (legitimate) reasons to create a 30 method Java class instead
of breaking it up, but that doesn't mean I am 100% happy afterwards. It
works but it smells.

Of course a purist global complex type schema can be hard to stick to,
so in organisations where I have put in place schema design
guidelines, I usually put down the following:
  - No global elements except candidate root elements
  - No inline anonymous type definitions, all elements must reference a
  global type except containers for repeating constructs because they are
  so simple, e.g. businessCenters containing businessCenter*

regards,
Christian

p.s. To be fair, most of these schemas were on the large side (hundreds of
types or more). The consequence of the strict guidelines was good
reuse, the ability to create a glossary, no hidden information, and so
on... the design guidelines were enforced using an XSLT stylesheet
that created a quality report.



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.