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

Re: Inconsistent Validation - mixed content and group

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 29 May 2002 13:43:06 +0200 (CEST)
Message-ID: <33596.>
To: <ijs@decisionsoft.com>
Cc: <vdv@dyomedea.com>, <xmlschema-dev@w3.org>

Ian Stokes-Rees said:

> I meant this only in the sense that a many data types will have
> difficulty being interpretted meaningfully on mixed content.  For
> example, imagine
> <A>start<B>middle</B>end</A>
> If the data type for A is any numeric data type, a date, or some
> pattern, it will be very difficult to meaningfully apply.

This is also what I meant :-) ... with Relax NG you can define what
"start", "middle" and "end" look like. And this is so simple that it's
surprising that other schema languages may stumble on this issue:
<element name="A">
 <data type="TypeOfStart"/>
 <element name="B">
   <data type="TypeOfMiddle"/>
 <data type="TypeOfEnd"/>

What you can't do with Relax NG alone is to say for instance that the
string value of "A" is a date, but this will be made possible by the DSDL
interoperabily framework (which BTW, should enable W3C XML Schema to do so
as well).
See you in San Diego.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Wednesday, 29 May 2002 07:43:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:02 UTC