If the string is entirely numeric, convert it to a number and back again: string(number($in)).
Alternatively, in XSLT 2.0, replace($in, '^0*', '')
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference