This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: syntax question: using a variable inside format-number()
> <xsl:value-of select="format-number(/AssetAnalyzer/$curcat,'#00%')"/>
your problem is nothing to do with format-number it's just that
/AssetAnalyzer/$curcat
isn't a valid xpath construct, you can't use a string containing part of
an xpath as part of an expression. For simple cases (like this)
you can use
/AssetAnalyzer/*[name()=$curcat]
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list