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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format