RE: RJZF for "format" in xsl:number

Subject: RE: RJZF for "format" in xsl:number
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 10 Jul 2000 18:21:24 +0100
> 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


Current Thread