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: Re: using format-number() for aligned text output


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


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