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

RE: type for using a more restrictive type

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Tue, 5 Nov 2002 15:48:07 -0800
Message-Id: <8904C60CACA7D51191BC00805FEAAF43D10E4C@crdc-exch-7.crdc.kp.org>
To: "'Michael'" <listes.marchegay@wanadoo.fr>, xmlschema-dev <xmlschema-dev@w3.org>

> -----Original Message-----
> From:	Michael [SMTP:listes.marchegay@wanadoo.fr]
> Sent:	Tuesday, November 05, 2002 3:22 PM
> To:	xmlschema-dev
> Subject:	xsi:type for using a more restrictive type
> I am trying to find an example in which the attribute xsi:type would be 
> useful for a type derived by restriction, but I do not see any reason of 
> using "xsi:type" to change the type of an element to a more restrictive one.
> Does anybody of you know an example in which using "xsi:type" for 
> substituting a type by one of the types that restrict it would be useful.
A couple of situtations.

1. if the element is declared to be of a type that is abstract and instance will want to use xsi:type to specify a concrete type derived by restriction or extension
2. if an element is declared to be of a "permissive" type (i.e., allows some optional children) and the sender wants to assert that they are sending a more "restrictive" version (i.e., includes only the required children) they use xsi:type to specify the type that is derived by restriction from the permissive one.

I'm sure there are others.

Received on Tuesday, 5 November 2002 19:10:45 UTC

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