NEW ISSUE: Mapping Simple Numeric Types with Infinite Value Space

* 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 UTC