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

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


xml schema lookup values

>
> There was someone with that need writing to the list a few days ago. It
> seems entirely legitimate to me to apply different schemas to the same
> document at different stages of a workflow, or for senders of documents to
> apply stronger validation criteria than recipients of the same documents.
>
> Michael Kay
> http://www.saxonica.com/
>

Shouldn't it be the case that the validation process necessitates
a 2-stage parsing ? What I mean is that XSD can only do a lexical
validation, a second follow-up stage that validates against the
application semantics is required.

I am not too sure if pushing the logical validation into the
lexical validation stage desirable because that could confuse the purpose
of what I see as two distinct validation stages. The scope
of logical validation is surely more complex than lexical parsing
(eg. valid values depending on the lifecycle of the data, relative
date values, lookup into databases to validate logical constrains, etc).

IMHO, leaving that in the scripting/programming/xslt/xquery space
is surely more flexible and this should generally be the direction rather
than generating dynamic schemas; which IMO would make a system
mind-boggling to debug, wouldn't it ?

Instituting a 2-stage validation makes each of its design and
implementation clean and focused; hopefully resulting in a
more robust and predictable application.
Depending on the application context and whether
type info needs to be extracted from the validation, the XSD
validation stage can be turned off to improve throughput
once the system is stable. I know the latter suggestion
may be controversial to some, but it is an option
if the logical validation is not mangled into the lexical
space.




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.