Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] A single, all-encompassing data validation language - good or bad for the marketplace?

From: Amelia A Lewis <amyzing@--------.--->
To: xml-dev@-----.---.---
Date: 8/7/2007 2:21:00 AM
On 2007-08-06 21:44:32 -0400 Michael Kay <mike@s...> wrote:
> Say you've got a schema that says an element representing data for a 
> month
> must have at most 31 children, and you decide you want to be a bit 
> more
> precise and say it must be 30 for some months and 31 for others and
> occasionally 28 or 29. Does this refinement mean you are doing 
> something of
> a fundamentally different nature? I think not. It does mean that 
> you've
> crossed the limits of what can be done with a grammar-based approach, 
> but

Really?

I do not find it difficult to imagine a grammar that can specify these 
constraints; using the set-notation formalisms common in discussions 
of automata, it's relatively straightforward (handling the various 
gregorian exceptions gets increasingly difficult and verbose as one 
grows more and more precise, but it is not inherently beyond the scope 
of a grammar ... is it?).

It probably does require a pushdown automaton to parse, but it's not 
really beyond the scope of grammar, is it?  Am I being misled by a 
late introduction to formalisms and automata?

I'll grant that it's utterly beyond the capability of W3C XML Schema, 
but ... well, that's not the best definition of grammar around, is it?

In fact, co-occurrence constraints are not, inherently, out of scope 
of grammar, are they?  I recently went to look at what W3C XML Schema 
1.1 is doing, and was ... well, not surprised, perhaps, but at least 
disappointed.  Given the advances in understanding of XML grammars 
since the publication of 1.0, I had hoped to see some interesting 
cleanup.  Instead, the changes seem to be more on the order of adding 
exceptions and special cases, a sort of second system effect for the 
second system ....

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
But pain ... seems to me an insufficient reason not to embrace life.
Being dead is quite painless.  Pain, like time, is going to come on
regardless.  Question is, what glorious moments can you win from life
in addition to the pain?
    -- Cordelia Naismith Vorkosigan [Lois McMasters Bujold, "Barrayar"]


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