<?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>4451</bug_id>
          
          <creation_ts>2007-04-05 01:57:06 +0000</creation_ts>
          <short_desc>decimal canonical mapping inconsistency</short_desc>
          <delta_ts>2008-06-07 01:19:41 +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.1 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>cluster: numbers</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Peterson">davep</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>14673</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2007-04-05 01:57:06 +0000</bug_when>
    <thetext>In 3.3.3.1 we assert:

The ·canonical representation· for decimal is defined by prohibiting certain options from the Lexical Mapping (§3.3.3.1).  Specifically, the preceding optional &quot;+&quot; sign is prohibited.  The decimal point is required.  Leading and trailing zeroes are prohibited subject to the following:  there must be at least one digit to the right and to the left of the decimal point which may be a zero.

however, the canonical mapping algorithm says:

1.  If d is an integer, then return ·noDecimalPtCanonicalMap·(d).

So according to the canonical mapping, the canonical representation of 3 is &apos;3&apos;, in decimal as well as the derived integer datatype.  I suspect the wording in 3.3.3.1 is in error, inherited from 1.0, but I haven&apos;t searched the WG minutes to be sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20394</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-06-06 00:01:02 +0000</bug_when>
    <thetext>A wording proposal intended to resolve this issue is at 

  http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.b4395.html
  (member-only link)

The proposal changes the paragraph in question to read:

  The definition of the ·canonical representation· has the effect of
  prohibiting certain options from the Lexical Mapping (§3.3.3.1).
  Specifically, for integers, the decimal point and fractional part
  are prohibited. For other values, the preceding optional &quot;+&quot; sign is
  prohibited.  The decimal point is required.  In all cases, leading
  and trailing zeroes are prohibited subject to the following: there
  must be at least one digit to the right and to the left of the
  decimal point which may be a zero.

This proposal is &apos;speculative&apos; in the sense that the WG has not agreed
to consider this issue, let alone how to resolve it.  It has also not had
normal editorial review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20404</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-06-07 01:19:41 +0000</bug_when>
    <thetext>The proposal reproduced in comment #1 was adopted at today&apos;s call,
with amendments to make cleear that integers, too, prohibit the
leading + in their canonical form.

DaveP, please close or reopen to indicate your satisfaction or dis-
with this resolution.  
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>