<?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>3813</bug_id>
          
          <creation_ts>2006-10-09 17:38:49 +0000</creation_ts>
          <short_desc>Editorial: correct misuse of &apos;lexical mapping&apos;</short_desc>
          <delta_ts>2008-03-08 15:12:11 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>thimble, easy</status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</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>12351</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-09 17:38:49 +0000</bug_when>
    <thetext>When discussing float, double, and decimal, the Datatypes spec
uses the term &apos;NaN&apos; to denote the appropriately typed value
notANumber.  The descriptions of that usage for float and double,
however, seem to misuse the term &apos;lexical mapping&apos;; this should
be corrected.

Section 3.3.5.1 has

    Note: As explained below, the lexical mapping of the float
    value notANumber is &apos;NaN&apos;.  Accordingly, in English text we
    generally use &apos;NaN&apos; to refer to that value.

Section 3.3.6.1 similarly has

    Note: As explained below, the lexical mapping of the double
    value notANumber is &apos;NaN&apos;.  Accordingly, in English text we
    generally use &apos;NaN&apos; to refer to that value.

The lexical mapping of a type is a function from the lexical
space to the value space; that term makes no sense in the
sentences just given.  What is meant is the pre-image of
notANumber.

Section 3.3.4.1 on decimal has a better wording:

    Note: As explained below, the lexical representation of the
    precisionDecimal value object whose numericalValue is
    notANumber is &apos;NaN&apos;.  Accordingly, in English text we use
    &apos;NaN&apos; to refer to that value.

Proposal: the editors should be instructed to align the sections
on float and double with that on decimal, in this regard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12355</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-10-09 19:29:49 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; Section 3.3.5.1 has
&gt; 
&gt;     Note: As explained below, the lexical mapping of the float
&gt;     value notANumber is &apos;NaN&apos;.  Accordingly, in English text we
&gt;     generally use &apos;NaN&apos; to refer to that value.

&gt; The lexical mapping of a type is a function from the lexical
&gt; space to the value space; that term makes no sense in the
&gt; sentences just given.  What is meant is the pre-image of
&gt; notANumber.

Since the special value notANumber is in the value space of float and decimal, &apos;NaN&apos; is in the lexical space, and the lexical mapping is a function which, among other things, maps &apos;NaN&apos; to notANumber,
I&apos;d say the Note is correct as stated.

&gt; Section 3.3.4.1 on decimal has a better wording:
&gt; 
&gt;     Note: As explained below, the lexical representation of the
&gt;     precisionDecimal value object whose numericalValue is
&gt;     notANumber is &apos;NaN&apos;.  Accordingly, in English text we use
&gt;     &apos;NaN&apos; to refer to that value.

In the case of precisionDecimal, the values in the value space are three-tuples with named coordinates; one of the coordinates is named &quot;numericalValue&quot;.  When the numericalValue coordinate has the value notANumber, the arithmeticPrecision and sign coordinates must both have the value absent.  So the lexical mapping maps &apos;NaN&apos; to that three-tuple.  In the case of float and double, the constant is the value, rather than being one coordinate of a three-tuple value. In all three cases, the lexical mapping maps &apos;NaN&apos; to the corresponding value in the value space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12356</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-10-09 19:53:35 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; Since the special value notANumber is in the value space of float and decimal,

Oops!  For &quot;float and decimal&quot;, read &quot;float and double&quot;, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12369</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-10-10 02:08:37 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; When discussing float, double, and decimal, the Datatypes spec
&gt; uses the term &apos;NaN&apos; to denote the appropriately typed value
&gt; notANumber.  The descriptions of that usage for float and double,
&gt; however, seem to misuse the term &apos;lexical mapping&apos;; this should
&gt; be corrected.
&gt; 
&gt; Section 3.3.5.1 has
&gt; 
&gt;     Note: As explained below, the lexical mapping of the float
&gt;     value notANumber is &apos;NaN&apos;.  Accordingly, in English text we
&gt;     generally use &apos;NaN&apos; to refer to that value.

Upon rereading, I believe I now understand what your complaint is.  I believe the correct fix is to substitute &apos;lexical representation&apos; for &apos;lexical mapping&apos;.  The original is arguably correct, but the fix is much easier to read correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12963</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-11-18 02:09:07 +0000</bug_when>
    <thetext>Approved by the WG; awaiting incorporation into the status quo document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16434</commentid>
    <comment_count>5</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2007-09-10 14:44:17 +0000</bug_when>
    <thetext>(removed the keyword &quot;unclassified&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16648</commentid>
    <comment_count>6</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-09-18 00:45:22 +0000</bug_when>
    <thetext>The change proposed above was approved by the WG in its call of 
1 December 2006.  It is now reflected in the status quo version 
of the Datatypes spec.  Accordingly, I am setting the disposition of 
this issue to RESOLVED / FIXED.

If the originator of the issue would examine the change and let 
us know whether it satisfactorily resolves the problem or not, 
we&apos;d be grateful.   To signal that the resolution is acceptable, 
change the status of the issue to CLOSED.  Otherwise, to signal 
that it&apos;s NOT acceptable, change the status to REOPENED (and 
tell us what&apos;s wrong).

If we don&apos;t hear from you in the next three weeks, we&apos;ll assume 
that silence betokens consent, and close the issue ourselves.  </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>