- From: Biron,Paul V <Paul.V.Biron@kp.org>
- Date: Tue, 5 Nov 2002 15:48:07 -0800
- 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. pvb
Received on Tuesday, 5 November 2002 19:10:45 UTC