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
- Subject: Re: RJZF for "format" in xsl:number
- From: Ragnar Schierholz <raschi at ematic dot com>
- Date: Mon, 10 Jul 2000 14:12:52 -0500
- Reply-To: xsl-list at mulberrytech dot com
John Robert Gardner wrote:
> 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?
Have a look at W3C's XSLT working draft, section 7.7.1, Number to String
Conversion Attributes (http://www.w3.org/TR/xslt#convert). Using a token
of "01" the XSLT Processor is supposed to create numbers "01", "02", ...
"09", "10", "11", ... "98", "99", "100", "101" ... and so on.
And of course you should be able to add multiple leading 0s.
HTH,
Ragnar
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list