|
Subject: [xsl] format decimal numbers issue From: "Z W" <mpc8250@xxxxxxxxx> Date: Sat, 22 Mar 2008 06:16:11 -0700 |
Hi folks
I'm not sure why I'm getting errors when running this.
Is there a workaround to this ?
Any suggestion is appreciated.
<xsl:variable name="tput">
<xsl:call-template name="display-dec-sec">
<xsl:with-param name="value" select="$count div
$timeSpan * 1000" />
</xsl:call-template>
</xsl:variable>
<td>
<xsl:call-template name="display-dec-sec">
<xsl:with-param name="value" select="$tput" />
</xsl:call-template>
</td>
<xsl:template name="display-dec-sec">
<xsl:param name="value" />
<xsl:value-of select="format-number($value,'#,.000 s')" />
</xsl:template>
[xslt] C:\detail.xsl:153: Fatal Error! Cannot convert string "5.894 s"
to a double
Timespan is 1.20329889312E12 - 1.203298892102E12 and count is 6 which
should give 5.893909626719057
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Unexpected behavior with , James Fuller | Thread | Re: [xsl] format decimal numbers is, Martin Honnen |
| Re: [xsl] XSLT processor for Mac OS, Lou Iorio | Date | Re: [xsl] How to sort attributes to, Michael Müller-Hille |
| Month |