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

nonPositiveInteger should allow +0

From: James Clark <jjc@jclark.com>
Date: Thu, 11 Jan 2001 10:22:20 +0700
Message-ID: <3A5D26EC.D30538A8@jclark.com>
To: XML Schema Comments <www-xml-schema-comments@w3.org>
If I've understood the decimal type correctly, 0, +0 and -0 all
represent the same value.  Derivation by restriction restricts the value
space of the base type (except possibly for the pattern facet). This
means that if a type is derived from decimal not using the pattern
facet, then if any of 0, +0 and -0 are in the lexical space, all of them
must be.

However, nonPositiveInteger describes its lexical space as

nonPositiveInteger has a lexical representation consisting of a negative
sign ("-") followed by a finite-length sequence of decimal digits
(#x30-#x39). If the sequence of digits consists of all zeros then the
sign is optional.

This allows -0 and 0 but not +0.

Received on Wednesday, 10 January 2001 22:23:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:54 UTC