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/5/2004 2:40:00 AM
Hi Michael

>
> That's actually four levels already: unicode encoding, XML well-formedness,
> schema validity, and application validity. And yes, you often need multiple
> levels.
>
The first 2 levels you mentioned are not configurable. I had lumped the
first 3 stages you have mentioned into one. Schema validity is the
right technical term to use, my humble apologies.

> But that doesn't stop you wanting individual levels to be configurable. A
> very simple example, when I validate new documents I want to check that the
> date is today. That kind of thing is very easily achieved by a configurable
> schema.

With all due respect, this is a trivial example becaue the today context
is implicit. However, I must add that the angle where your idea comes from
is brilliant ! Honestly, I have not thought of this before, but isn't this not
a complex solution to a simple problem ? If I have to do this validation
at the schema level, I would have to factor Today either as a regular
expression or into its facets, taking into consideration 8601 constrains
and time zones. If this is done at the application validity (2nd stage) phase,
it would probably only entail a simple comparison to a Today constant.
I have not taken this path before to discuss in exact implementation
details, so I may be wrong.

The scenario is however vastly different if we are in a workflow app,
external context aside, we cannot assume some state without first
looking into the document right ?

> Equally, the application-level validation is often done using XSLT
> stylesheets, and people often transform stylesheets for the same reason: you
> need things to be configurable at that level too.
>
Sure, my point is that the logical stuffs should be kept here and not
moved into the Schema validity space through dynamic schemas.
I suspect, even if XML Schema evolved to provide conditional
validation in the distant future, we still cannot completely escape
the application-level validation layer. The XML Schema must still
be emphsized as a means to enforce an agreed vocabulary and
not become dependent on application/system semantics.
The trick is therefore to strike the correct balance by putting
each validation requirement into the correct layer.

best rgds,
Kuan Hui


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