Hi All,
Iam using Ajax Framwork and construct the DOM object and then render it using XSL.Iam able to do that successfully.But after 30 mins(default time for session),when I click any folder,it gives me the following error:
"The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document."
The reason I feel is the DOM which store in the request becomes null after the session expires.
See the code below:
xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
xslDoc.async = false;
xslDoc.resolveExternals = false;
xslDoc.load(path);
if (typeof ActiveXObject != 'undefined') {var xslProcess = new ActiveXObject("MSXML2.XSLTemplate");
xslProcess.stylesheet = xslDoc;//This is the error line
var proc = xslProcess.createProcessor();proc.addParameter(param,paramVal);
proc.input =
doc;
proc.addParameter(param,paramVal);
proc.transform();
transformString = proc.output;
}
else {
xslDoc.importStylesheet(xslDoc);
var transformString=xslDoc.transformToFragmentdoc,document);
if( transformString.childNodes.length>0 )
transformString = transform.childNodes[0].innerHTML;
else
alert('Your browser can\'t handle this script');
}
return transformString;
Iam using the above code.Can anyone let me know how to resolve this error?If the session expires then what needs to be done?
Thanks and Regards
Shiv