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

Re: dynamically generated XML Schema?! Re: R:[xml-de

xml schema conditional
Michael Kay wrote:

>>Granted, but does that require a "dynamically generated" schema?
>If you can think of a better way of maintaining several schemas that are
>identical in most respects, but vary in terms of which elements/attributes
>are optional, then let me know.
>This is a classic "conditional compilation" scenario, and for languages
>based on XML, XSLT provides a powerful tool for such use cases.
I thought it is more a scenario for using derivation by restriction.

But again, I don't rule out the possibility that there are some 
contrived schemata where you cannot use restriction.

E.g. if one has used anonymous types instead of named ones! Such 
schemata are flawed by design, replacing them with a better schema seems 
to me more viable than fixing it with conditional rewriting. I am not 
sure if this does not hold for all schemata that some think benefit from 
dynamic recreation,  but it's hard to prove or disprove. I am eager to 
see an example.

My point is, XSD allows to mimick some ideas for object-oriented design 
that give you extensibility (and customizability) to some extent. Using 
this seems better than patching things up with a stylesheet.




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