<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2140</bug_id>
          
          <creation_ts>2005-09-12 15:27:00 +0000</creation_ts>
          <short_desc>R-149: Is +0 allowed as a nonPositiveInteger in lexical form?</short_desc>
          <delta_ts>2009-04-21 19:25:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6089</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-12 15:27:00 +0000</bug_when>
    <thetext>Is +0 allowed as a nonPositiveInteger? At the moment there&apos;s a contradiction. 
3.3.14.1 says &quot;nonPositiveInteger has a lexical representation consisting of a 
negative sign (&quot;-&quot;) 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.&quot; This doesn&apos;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. 

Either

(a) the prose in 3.3.14.1 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 &quot;-0&quot;. However, at the moment there&apos;s no contradiction since the prose 
for nonNegativeInteger allows &quot;an optional sign&quot; not just an optional positive 
sign.

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0051.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6090</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-12 15:34:52 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0053.html

http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0053.html

Resolution:
Discussed at the May 31 telecon. WG resolved to to classify R-149 as a 
clarification with erratum, and instruct the editors to draft an erratum fixing 
the prose.

Proposed text:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jun/0010.html 

Final approved text may be found at:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0086.html

Erratum E2-27 added.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>