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]
Other format: [Raw text]

Getting rid of leading zeros in format-number


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


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