[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Getting rid of leading zeros in format-number

Subject: Getting rid of leading zeros in format-number
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Tue, 27 Nov 2001 12:37:13 -0800
format number leading zero
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@xxxxxxxxxxx
________________________________________
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.