W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2008

[Bug 3232] Type versus Datatype

From: <bugzilla@wiggum.w3.org>
Date: Tue, 05 Feb 2008 08:17:29 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1JMIzh-0001yG-57@wiggum.w3.org>


------- Comment #4 from mike@saxonica.com  2008-02-05 08:17 -------
>As I see it, simple and compound types are intermediate between element and the
element types of XML (defined by the unfortunately renamed "element
definition", really still an element type definition).  As such, they define
subclasses of element (i.e., the class of which elements and only elements are

Well, I don't see it that way at all. When I define a simpleType by restriction
from xs:integer, I'm not defining a subclass of elements. The simpleType might
never be used as the type of an element, or for that matter an attribute. It
might only be used as the type of an XQuery function parameter, for example.

As far as I can see, the words "datatype" and "simple type" are pure synonyms.
If you don't think so, can you point to some objects that belong to one
category and not to the other?
Received on Tuesday, 5 February 2008 08:17:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:07 UTC