Subject:XSLT: How to get the value returned from javascript function. Author:Brian Jefferson Date:14 Apr 2005 04:18 AM
I have writen a small program to call javascript function to return me a formated string. Later I print the string
in XSLT file. However, it's failed. Then I try to use the "Document.writeln" instead of "return string" in javascript.
IT WORK! Can anyone please explain to me???
function DivideString()
{
var where_is_mytool="home//mytool///mytool.cgi////abcdefg";
var mytool_array=where_is_mytool.split("/");
var str=mytool_array.join("\r\n");
//document.writeln(str);
return str;
}
]]>