This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Getting rid of leading zeros in format-number
- From: Chuck White <chuckwh at pacbell dot net>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 27 Nov 2001 12:37:13 -0800
- Subject: [xsl] Getting rid of leading zeros in format-number
- Reply-to: xsl-list at lists dot mulberrytech dot com
I've searched but haven't found the answer, so...
Is there a way to delete leading 0s in a number using format-number()? I
know how to get rid of trailing 0s, but not leading. I would like
0004
to become
4
I suppose I should try a Java list, since the problem seems to be my
inability to grok the JDK 1.1 pattern mystery, but I'm hoping someone here
just happens to know the answer.
thanks much in advance!
Chuck White
The Tumeric Partnership
http://www.tumeric.net
chuck@tumeric.net
________________________________________
Author, Mastering XML, Premium Edition
Sybex Books, May, 2001
http://www.javertising.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list