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.192.127.127.15.1022672586.squirrel@poweredge.paris.dyomedea.com>
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"/>
 </element>
 <data type="TypeOfEnd"/>
</element>

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).
Eric
-- 
See you in San Diego.
                               http://conferences.oreillynet.com/os2002/
------------------------------------------------------------------------
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.3.1 : Wednesday, 7 January 2015 14:55:56 UTC