Darius
asked on
xslt 1.0 - Formatting string (Removing leading zeros)
Hi guys,
I am facing an issue with string formatting to remove leading zeros.
when
input = '000111100' or 111100
result is: 111100 - all ok!
when
input = '0111111111111111111110111 0'
result is: "1111111111111111100000000 "
expected result is: 1111111111111111111101110
Function
Please share if you have an explanation or logic function to remove leading zeros only on any size of value.
Thank You,
Darius
I am facing an issue with string formatting to remove leading zeros.
when
input = '000111100' or 111100
result is: 111100 - all ok!
when
input = '0111111111111111111110111
result is: "1111111111111111100000000
expected result is: 1111111111111111111101110
Function
<xsl:variable name="test1" select="string(number($input))" />
It looks like does not work for large numbers.Please share if you have an explanation or logic function to remove leading zeros only on any size of value.
Thank You,
Darius
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Geert,
much appreciate
much appreciate
welcome
Open in new window
would then become
Open in new window