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

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