<?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>3162</bug_id>
          
          <creation_ts>2006-04-27 18:40:03 +0000</creation_ts>
          <short_desc>New discretionary choice in xsl:number?</short_desc>
          <delta_ts>2006-05-05 08:13:06 +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 2000</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Marston">david_marston</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>9502</commentid>
    <comment_count>0</comment_count>
    <who name="David Marston">david_marston</who>
    <bug_when>2006-04-27 18:40:03 +0000</bug_when>
    <thetext>Appendix J.1.3, item 8, states:
If the expression in the value attribute of xsl:number returns an empty sequence or a sequence including non-numeric values, an XSLT 2.0 processor may signal a recoverable error; but with backwards compatibility enabled, it outputs NaN.

Yet chapter 12 does not mention any recoverable error. Should this appendix say
&quot;MUST signal a non-recoverable error&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9520</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-04-28 09:13:13 +0000</bug_when>
    <thetext>You are right, this non-normative paragraph reflects an older version of the specification. The error conditions have become non-recoverable. In fact, the &quot;empty sequence&quot; case is not an error under 2.0, and the &quot;sequence including non-numeric values&quot; is a non-recoverable error.

As this is non-normative text whose only purpose is to summarise what is already stated in the normative part of the specification, I propose to treat it as editorial. I have accordingly merged this list item into list item 3, which now reads:

&lt;item&gt;&lt;p&gt;If the expression in the &lt;code&gt;value&lt;/code&gt; attribute of the 
 &lt;elcode&gt;xsl:number&lt;/elcode&gt; instruction
 returns a sequence of more than one item, then under XSLT 2.0
 all items in the sequence will be output, as defined by the &lt;code&gt;format&lt;/code&gt; attribute, 
 but under XSLT 1.0, all items after the first will be discarded. If the sequence is empty, then
 under XSLT 2.0 nothing will be output (other than a prefix and suffix if requested), but under XSLT 1.0, the output is &quot;NaN&quot;. If the first item
 in the sequence cannot be converted to a number, then XSLT 2.0 signals a non-recoverable error,
 while XSLT 1.0 outputs &quot;NaN&quot;.&lt;/p&gt;&lt;/item&gt;

I have made the above change to the text, but will leave the bug open so it can be reviewed by the WG.

There&apos;s another possible incompatibility in this area which we don&apos;t mention: in XSLT 2.0 it&apos;s an error to specify &lt;xsl:number value=&quot;-1&quot;/&gt;, whereas XSLT 1.0 doesn&apos;t say what happens in this case (all it says is that it can&apos;t happen, which isn&apos;t true). I think this stone is best left unturned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9608</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-05-05 08:12:52 +0000</bug_when>
    <thetext>The WG reviewed this response and agreed with it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>