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: format-number usage


Nuri Besen wrote:
> 
> Hello,
> 
> I am trying to use number formating in XSL with
> format-number function using Xalan/Xerces as processors.
> 
> >From what i understood, this should work:
> format-number(123456,"#,##0")
> but i get a parse exception as:
> pattern = '#,##0'
> Extra illegal tokens: ',', '##0'
> 
> I want to display "123,456", what is wrong here?

It sounds like you have your format-number in a select attribute.  Try
using apostrophes (') around your #,##0 instead of quotes.  If you begin
your select attribute value with quotes, your first quote before the #
would end the attribute value.

Gary


 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]