Subject:problem in loadxml function Author:jinat rehana Date:22 Jul 2008 02:34 AM
hello,
i have wrote following code to load xml+xsl in IE:
function displayResult(xmlfile,xslfile)
{
if (window.ActiveXObject)
{ var srcTree = new ActiveXObject("Msxml2.DOMDocument.5.0");
srcTree.setProperty("ValidateOnParse",false);///////code for entities
srcTree.async=false;
srcTree.load(xmlfile);
var xsltTree= new ActiveXObject("Msxml2.DOMDocument.5.0");
xsltTree.setProperty("ValidateOnParse",false);/////code for entities
xsltTree.async = false;
xsltTree.load(xslfile);
body.innerHTML = srcTree.transformNode(xsltTree);
}
this function properly loads xml+xsl pages.but if i call any javascript function in xsl file, the function does not works.
and IE shows error message as:"object expected".
if i directly add styleseet to xml file javascript function works.
i cann't understand the problem.
can anyone help me?