This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re: using format-number() for aligned text output
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Re: using format-number() for aligned text output
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 29 Mar 2001 00:15:26 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
The JDK 1.1 specification of these patterns, which XSLT relies on, is one of
the vaguest bits of specification I have ever seen. The details I give in my
book are established almost entirely by trial and error.
I think that before the decimal point, the only use of "#" is to indicate
where the thousands separator should go, e.g. #,##0.00. After the decimal
point, trailing zeroes are omitted if "#" is used rather than "0".
Mike Kay
>
> Any alternative interpretations out there for the
> specification wording of:
> "digit specifies the character used for a digit in the format
> pattern; the
> default value is the number sign character (#)"? Would
> anyone else expect
> the "#" to produce a space if no digit is there? If that isn't the
> behaviour, then what is the utility of the "#"?
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list