xsl-list
[Top] [All Lists]

Re: Removing leading zeros

2003-01-25 00:38:02

"Nischal Muthana" <nischal_muthana(_at_)yahoo(_dot_)com> wrote in message
news:20030125024711(_dot_)36950(_dot_)qmail(_at_)web20305(_dot_)mail(_dot_)yahoo(_dot_)com(_dot_)(_dot_)(_dot_)
Hi Wendell 

Thanks for your time. Your solution works perfect to
just remove all the zeros in the given string. 

The one you mentioned does the following

000125000 -- 125
0012300  -- 123
01234 -- 1234

Which XPath engine are you using? It must be extremely broken.

The value of

string(number(0012300))

is just

12300





=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>