You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Morten Primdahl <mo...@it-c.dk> on 2002/02/04 23:58:28 UTC

call-template question

Hi folks,

<xsl:call-template name="foo">
  <xsl:with-param name="bar"><xsl:number level="any"/></xsl:with-param>
</xsl:call-template>

<xsl:template name="foo"><xsl:param name="bar"/>
  <xsl:value-of select="$bar"/>
</xsl:template>

If <xsl:number level="any"/> is greater than 999 formatting is applied
and the value-of prints eg. 1,000 1,001 (comma). Default format for
xsl:number is (to my understanding) "1" - which should not display this
behaviour?

Anyway, the place I'm using this is in <xsl:value-of select="$bar*1000"/>
which results in NaN when $bar > 999 and has formatting applied. Any
workarounds for this? I tried forcing number(), and tried format-number
which I did not manage to work out the patter system of :|

Thanks,

Morten