I have the following in my XSLT sheet that test for a number that doesn't work.
If I do:
<xsl:choose>
<xsl:when test="number('j') = 'NaN'">
0
</xsl:when>
<xsltherwise>
<xsl:value-of select="substring(name(),7,1) - 1"/>
</xsltherwise>
</xsl:choose>
I have a break on the "0" and the select and no matter what I put in the number() function as a paramter it always takes the otherwise path.
Why doesn't it work?
Thanks,
Tom
If I do:
<xsl:choose>
<xsl:when test="number('j') = 'NaN'">
0
</xsl:when>
<xsltherwise>
<xsl:value-of select="substring(name(),7,1) - 1"/>
</xsltherwise>
</xsl:choose>
I have a break on the "0" and the select and no matter what I put in the number() function as a paramter it always takes the otherwise path.
Why doesn't it work?
Thanks,
Tom