<?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>2712</bug_id>
          
          <creation_ts>2006-01-13 17:50:16 +0000</creation_ts>
          <short_desc>[XSLT 2.0] format-number(NaN)</short_desc>
          <delta_ts>2006-01-27 20:59:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7823</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-01-13 17:50:17 +0000</bug_when>
    <thetext>Rule 1 at http://www.w3.org/TR/xslt20/#formatting-the-number specifies that NaN
is formatted using the prefix and suffix of the positive sub-picture. This
appears to be incompatible with XSLT 1.0, which ignores the prefix and suffix in
this case. The JSK 1.1.8 documentation (which 1.0 references) states:

* NaN is formatted as a single character, typically \\uFFFD.

* +/-Infinity is formatted as a single character, typically \\u221E, plus the
positive and negative pre/suffixes.

The &quot;single character&quot; is nonsense (though it&apos;s still there in the JDK 1.5
spec): DecimalFormatSymbols allows a String for these symbols! 

But the spec does say (in effect) that the prefix/suffix are NOT used for the
NaN case.

A post on the mulberry xsl-list today has pointed out this backwards
incompatibility with existing XSLT 1.0 implementations (citing Saxon and Xalan).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8021</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-01-27 20:58:53 +0000</bug_when>
    <thetext>This change was agreed by the WG and has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>