W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2140] R-149: Is +0 allowed as a nonPositiveInteger in lexical form?

From: <bugzilla@wiggum.w3.org>
Date: Mon, 12 Sep 2005 15:27:01 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EEqCz-0002tA-Qf@wiggum.w3.org>


           Summary: R-149: Is +0 allowed as a nonPositiveInteger in lexical
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

Is +0 allowed as a nonPositiveInteger? At the moment there's a contradiction. says "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 doesn't allow +0. On the other hand 0 is in the value space of 
nonPositiveInteger and +0 is a legal representation of ) in the lexical space 
of integer. 


(a) the prose in needs fixing, or

(b) the schema for schema needs to add a pattern facet to the definition of 
nonPositiveInteger that excludes +0

If you do (b), then you will probably want to fix nonNegativeInteger to 
disallow "-0". However, at the moment there's no contradiction since the prose 
for nonNegativeInteger allows "an optional sign" not just an optional positive 

Received on Monday, 12 September 2005 15:27:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC