W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2009

RE: Motivations for restricting the "all" group

From: Michael Kay <mike@saxonica.com>
Date: Thu, 28 May 2009 11:46:33 +0100
To: "'Pete Cordell'" <petexmldev@codalogic.com>, "'Dag Hovland'" <dag.hovland@uib.no>, <xmlschema-dev@w3.org>
Message-ID: <B5361688BEB142FDB32AD4CAFBA085CA@Sealion>
> I think the feeling now is that there are other, non-state 
> machine ways to implement validation of constructs such as 
> xs:all with unrestricted cardinality and so the restrictions 
> are relaxed.

Yes, it's very easy to implement the validator with counters. The hardest
part in implementing the 1.1 spec is the rules for valid restrictions, for
example the fact that sequence(a, b, a?, b, a?) is a valid restriction of
all(a{1,5}, b{1,2}). And it's a little frustrating having to implement such
features when you know no-one is ever likely to write such a thing!

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
Received on Thursday, 28 May 2009 10:47:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:12 GMT