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

NEW ISSUE: Mapping Simple Numeric Types with Infinite Value Space

From: Erik Johnson <erikj@epicor.com>
Date: Mon, 19 Dec 2005 13:13:10 -0800
Message-ID: <BF9C5B9528B9C246BC41C7B988C49C87017865B3@slate.americas.epicor.net>
To: <public-xsd-databinding@w3.org>
* Title:          Mapping Simple Numeric Types with Infinite Value Space

* Description:    see below    

* Target:         "Basic"?

* Proposal:       see below

 

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 21:13:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:36 GMT