W3C home > Mailing lists > Public > xml-dist-app@w3.org > August 2001

Value of xsi:type & anonymous simple and complex types

From: Asir S Vedamuthu <asirv@webmethods.com>
Date: Mon, 6 Aug 2001 15:15:38 -0400
Message-ID: <01d501c11eac$2d6b27d0$9432010a@webmethods.com>
To: <xml-dist-app@w3.org>
One of the rules for serialization is [1],

"For each element containing a value, the type of the value MUST be
represented by at least one of the following conditions: (a) the containing
element instance contains an xsi:type attribute, (b) the containing element
instance is itself contained within an element containing a (possibly
defaulted) enc:arrayType attribute or (c) or the name of the element bears a
definite relation to the type, that type then determinable from a schema."

One of the possibilites is that this element has an anonymous simple or
complex type. In this case, there exists no name for the type.

If so, it is not possible to use the xsi:type atttribute such that the wire
representation is self-describing. Or, is there any other rule that covers
this scenario indirectly?

[1] http://www.w3.org/TR/soap12/#_Toc478383512


Asir S Vedamuthu

webMethods, Inc.
703-460-2513 or asirv@webmethods.com
Received on Monday, 6 August 2001 15:14:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:15 UTC