This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: format-number usage
- To: xsl-list at mulberrytech dot com
- Subject: Re: format-number usage
- From: Gary L Peskin <garyp at firstech dot com>
- Date: Fri, 01 Sep 2000 08:34:28 -0700
- Organization: The Firstech Corporation
- References: <LAW2-F210ZqYW8BYXif00003cda@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
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