This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RJZF for "format" in xsl:number
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: RJZF for "format" in xsl:number
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 10 Jul 2000 18:21:24 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'm looking at the fomatting options for xsl:number, and
> since I do not have a sufficiently large test file to determine this, can
> anyone tell me the answer to the following.
>
> Considering the RJSF (right-justfied, zero filled) format token option
> with "01, 02" etc. on up to 10, 11, 12, etc., what happens
> --what is the
> proper processor behavior-- when "100" is reached which exceeds the
> proprotion of digits assigned by the format token?
The JDK spec on which XSLT relies is surprisingly informal, so the examples
in my book are largely based on trial and error. My impression is that the
two format tokens "00" and "#00" are equivalent, in both cases you will get:
3 -> 03
33 -> 33
333 -> 333
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list