W3C home > Mailing lists > Public > www-ws-desc@w3.org > February 2004

Re: WSD WG requests to XML Schema WG

From: Glen Daniels <gdaniels@sonicsoftware.com>
Date: Sun, 22 Feb 2004 14:49:08 -0500
Message-ID: <019401c3f97c$f9e7ba00$7b00a8c0@AURORA>
To: "David Orchard" <dorchard@bea.com>, "Matthew Fuchs" <matt@westbridgetech.com>, <w3c-xml-schema-ig@w3.org>
Cc: <www-ws-desc@w3.org>

Hi folks!

David Orchard wrote:
> If an older receiver gets the <name xsi:type="nameType2">, how does it
> know that nameType2 is an extension of nameType?  Is there some way of
> saying "because  the receiver knows about nameType1 and it gets an
> element called name, it can ignore anything that is different between
> nameType1 and nameType2?

We had this same issue in a lot of the early SOAP encoding conversations,
and I remember talking through this in detail with Eric Prud'Hommeaux back
in 2000 in the context of object types and inheritance.  We came up with a
parentTypes="" (not sure what we called it tho) attribute which would allow
self-describing inheritance hierarchies for compatible extension types,
though it never went beyond that into any of the WG's.

If you know the schema for <name>, I think it's OK to simply ignore the
xsi:type - assuming what you're receiving is still schema-valid with respect
to the base type, it shouldn't matter if you don't understand the new type.

I believe .NET used to (or maybe still does) *always* ignore the xsi:type

Received on Sunday, 22 February 2004 14:49:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:06:38 UTC