This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: syntax question: using a variable inside format-number()
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: syntax question: using a variable inside format-number()
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 4 Dec 2000 10:07:08 -0000
- Reply-To: xsl-list at mulberrytech dot com
> Interesting, so if I were using Saxon I could have done the
> following :
>
> <xsl:value-of
> select="format-number(saxon:evaluate(/AssetAnalyzer/$curcat),'
> #00%')"/>
Almost, but the argument to saxon:evaluate must be a string:
<xsl:value-of
select="format-number(saxon:evaluate(concat('/AssetAnalyzer/', $curcat)),
'#00%')"/>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list