W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Re: attribute constraints

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 10 Oct 2001 07:51:21 +0200
Message-ID: <3BC3E1D9.2000707@dyomedea.com>
To: xmlschema-dev@w3.org
Eddie Robertsson wrote:

> There is also the third approach where you can use type substitution and
> explicitly choose the correct datatype with the xsi:type attribute in the
> instance document. 

Yes, but this is an intrusive method: you need to modify the syntax of 
the instance documents and I don't think the MathML working group will 
modify the syntax of MathML which is a recommendation to fit into the 
W3C XML Schema mold ;=) ...

The XML Schema WG itself hasn't used it, otherwise they could have used 
different complex types for local element definitions and elements 
references for instance!

I see this more as a workaround for custom vocabularies than something 
used by mainstream specifications...


> In this case though I'm not sure it's worth the extra
> trouble of creating two different types and then having to add the xsi:type
> attribute...
> Cheers,
> /Eddie

Rendez-vous  Paris pour une visite guidee de la nebuleuse XML.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Wednesday, 10 October 2001 01:50:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC