[xsl] format string with leading zeros

Subject: [xsl] format string with leading zeros
From: henry human <henry_human@xxxxxxxx>
Date: Wed, 4 Jan 2012 15:46:24 +0000 (GMT)
 
Hi 
I have following scenario, the itemCode field  must be 14 digits lang. I
try to ignore the last two decimals of the itemCode field if the itemCode is
more than 14 digits long (16 digits). And if the itemCode has less than 14,
 fill field with leading zeros so that the itemCodeCode is still 14 digits
long.
 
Input Example(1): itemCode : 0.0123456789 
output itemCode:
000.0123456789
 
Input Example(2): itemCode : 0.01111123456789 
output
itemCode: 0.011111234567
Thanks you

Current Thread