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: Add n number of characters to Element text



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

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