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: RJZF for "format" in xsl:number


> 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

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