Formatting string (Removing leading zeros)
I am newbie to xslt. My requirement is to transform xml file into text file as per the business specifications. I am facing an issue with one of the string formatting issue. Please help me out if you have any idea. Here is the part of input xml data: "0001295" Expected result to print into text file: 1295 My main issue is to remove leading Zeros. Please share if you have any logic/function. Just use this simple expression : number(.) Here is a complete example : <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="t">