W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2003

RE: document is not an element, is it?

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Tue, 11 Mar 2003 13:40:57 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453E137@daemsg02.software-ag.de>
To: Michael Rys <mrys@microsoft.com>, "Todd A. Mancini" <todd.mancini@daxat.com>, Jonathan Robie <jonathan.robie@datadirect-technologies.com>, MW <onlymails@gmx.net>, public-qt-comments@w3.org

> There is an open issue proposed on whether item? should be 
> item* or not.
> 
> We have anySimpleType?=anySimpleType* (since we do not have lists of
> lists) and anyType? = anyType*. So if you want to make 
> anyType a subtype of item then you better have the 
> equivalence item?=item*.
> 
> Best regards
> Michael

Michael, you have me completely confused. 

(a) I can't see the relevance of the above to Todd's comments
(b) I am unaware of these issues
(c) They don't make sense.

How can "item?" be the same as "item*"    (?)

How can "anyType" be a subtype of "item"? anyType is an annotation attached
to element nodes; no XPath value can ever be an instance of anyType (because
the typed value of a node with this label is not defined); item cannot be
used as an annotation on a node (because an annotation must be a
schema-defined simple or complex type).

The set of types available in XML Schema (simple types and complex types)
and the set of types used for values in XPath are two overlapping sets.
Their intersection is the set of atomic types. Complex types appear in XPath
ONLY as annotations of nodes. Node kinds like element() and comment() appear
as XPath types but not as XML Schema types. "Item", being the union of node
kinds and atomic types, is an XPath type but not an XML Schema type. So
"anyType" and "Item" are in completely unrelated parts of the space.

Michael Kay
Received on Tuesday, 11 March 2003 07:44:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT