- From: Databinding Issue Tracker <dean+cgi@w3.org>
- Date: Mon, 19 Dec 2005 22:38:35 +0000 (GMT)
- To: public-xsd-databinding@w3.org
ISSUE-3: Mapping Simple Numeric Types with Infinite Value Space
http://www.w3.org/2005/06/tracker/databinding/issues/3
Raised by: Paul Downey
On product: All
Created on behalf of Erik Johnson (Epicor)
http://lists.w3.org/Archives/Public/public-xsd-databinding/2005Dec/0015.html
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