W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > December 2005

ISSUE-3: Mapping Simple Numeric Types with Infinite Value Space

From: Databinding Issue Tracker <dean+cgi@w3.org>
Date: Mon, 19 Dec 2005 22:38:35 +0000 (GMT)
To: public-xsd-databinding@w3.org
Message-Id: <20051219223835.A3D42BDA7@w3c4.w3.org>

ISSUE-3: Mapping Simple Numeric Types with Infinite Value Space


Raised by: Paul Downey
On product: All

Created on behalf of Erik Johnson (Epicor)
The xs:integer simple type (which is derived from xs:decimal, BTW) has a
value space defined as "the infinite set {...,-2,-1,0,1,2,...}" (see
http://www.w3.org/TR/2000/WD-xmlschema-2-20000922/#integer).  Most
programming language and database implementations have (unsigned)
integer value spaces of 0 to some power of 2 minus 1.  Some schema
processors map xs:integer and derived types like xs:nonNegativeInteger
to string types to avoid potential overflow problems.  However, many
schema users are not aware that many languages/databases cannot consume
xs:nonNegativeInteger in the way developers may expect.


I think the only sound way to go forward is to ensure that schema
processors do not map simple types with an infinite value space to a
toolkit construct with a non-infinite value space.  

Received on Monday, 19 December 2005 22:38:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:12 UTC