Subject: Re: syntax question: using a variable inside format-number() From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 30 Nov 2000 16:05:29 GMT |
> <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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
syntax question: using a variable i, Alex Aguilar | Thread | Re: syntax question: using a variab, Steve Muench |
Re: scanning a tree, Richard Birkby | Date | Re: syntax question: using a variab, Steve Muench |
Month |