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: "TAN Kuan Hui" <kuanhui@---------.--->
To: "Michael Kay" <michael.h.kay@--------.--->,"'Burak Emir'" <Burak.Emir@----.-->,"'Chizzolini Stefano'" <chist@---.-->
Date: 11/4/2004 1:38:00 AM
>
> 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.


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