This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: syntax question: using a variable inside format-number()


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]