This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Add n number of characters to Element text
- To: xsl-list at mulberrytech dot com
- Subject: Re: Add n number of characters to Element text
- From: "David Marston/CAM/Lotus" <David_Marston at lotus dot com>
- Date: Wed, 17 May 2000 14:17:29 -0400
- Reply-To: xsl-list at mulberrytech dot com
Russ Cormier asks about prepending zeroes to a number.
This can be done with the format-number function by using 0 as a
place-holder in the pattern, like this:
<xsl:value-of select="format-number(.,'00')"/>
00 for two places, 000 for 3 places, etc.
.................David Marston
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list