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

dynamically generated XML Schema?! Re: R: Numberof a

xml schema generated from xml
Chizzolini Stefano wrote:

>	>Which raises an interesting question: Should there be a non-XML
>	>for XSDs like there is for RELAX NG? It's always been an article of
>	>faith for me that schemas should be written in XML, if for no other
>	>reason than not having to write another parser. But one does have
>	>wonder...
>I think there are some valid reasons for writing schemas in XML:
>seamlessness, elegance and power. Adopting a "self-describing" language
>syntax avoids the users from learning a new one and allows to leverage many
>existing applications derived from the original spec (in this case, XML
>spec); I mean, for example, the chance to dynamically generate brand new
>schemas through XSL transformations.
One can of course endlessly discuss about syntax, but I have never 
understood the obsessiveness of marking up descriptions of XML data in XML.

Who needs to dynamically generate schemas? The whole point of schemas is 
to be a widespread, well understood description of instances.

If you generate a shining brandnew schema dynamically using X, you end 
up with a description that did not exist before. Ergo, the risk is that 
you do not have conforming documents.

Now one can dwell in discussion of hypothetical families of schemas, but 
for all my experience tells me about modelling, if you manage to 
understand what the common things are that make a bunch of schemas a 
family, then you can anticipate the extensibility you need, which 
removes completely the need for dynamic generation.

What is a use case for dynamically generated schemas?
Why does one need to use XSL for it ?
Why couldn't one use non-XML syntax for it?

Burak Emir



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.