Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] dynamically generated XML Schema?! Re: [xml-dev] R:[xml-dev] Number of active public XML schemas

From: Burak Emir <Burak.Emir@----.-->
To: Michael Kay <michael.h.kay@--------.--->
Date: 11/3/2004 5:17:00 PM
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.

cheers,
Burak

http://lamp.epfl.ch/~buraq


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent