On 30 Sep 2015, at 10:17, Heiko Niemann kontakt(_at_)heiko-niemann(_dot_)de
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Hi,
I fail to understand why
format-number(0, '#') displays 0
while
format-number(0.0, '#') displays nothing.
Which XSLT processor, which version?
The rules were rewritten between XSLT 1.0 and 2.0, but in both cases, I can’t
see any reason why a processor should treat “0” and “0.0” differently. Looks
like a bug to me. Bugs are fairly excusable in 1.0 because the spec is so vague
(and since it depends on JDK 1.1, it’s actually very hard to get hold of), but
0 and 0.0 in XSLT 1.0 represent exactly the same quantity, so it’s certainly
odd behaviour.
Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--