I'm trying to use this script
function padNumber(num, len){
var str = ''+num;
while(str.length < len){
str = '0' + str;
}
return str;
}
in my xlst file but I get this error when trying to debug.
XslLoadException ---------------- XSLT compile error.
XmlException ------------ Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 522, position 27.
line 522 is
while(str.length < len){
Any suggestions?
<is an xml/xslt metacharacter...it cannot appear unencoded within either type of document. it should be<