W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2015

[Bug 29312] New: [XSLT30] First example in section http://www.w3.org/TR/xslt-30/#iterate does lack a format-number call

From: <bugzilla@jessica.w3.org>
Date: Sun, 29 Nov 2015 11:05:41 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29312-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29312

            Bug ID: 29312
           Summary: [XSLT30] First example in section
                    http://www.w3.org/TR/xslt-30/#iterate does lack a
                    format-number call
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: martin.honnen@gmx.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The first example in http://www.w3.org/TR/xslt-30/#iterate, according to the
description, should produce the output

<account>
  <balance date="2008-09-01" value="12.00"/>
  <balance date="2008-09-01" value="20.00"/>
  <balance date="2008-09-02" value="18.00"/>
  <balance date="2008-09-02" value="23.00"/>
</account>

but as the code simply does

<balance date="{@date}" value="{$newBalance}"/>

the values are not properly formatted and lack the zeroes after the decimal
point (e.g. value="12"), so the code needs to be fixed by using

<balance date="{@date}" value="{format-number($newBalance, '0.00')}"/>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 29 November 2015 11:05:44 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 29 November 2015 11:05:45 UTC