I have a javascript function generating HTML by parsing XSL and XML. It was working fine. All of sudden, it stopped working.
I get "The XSL stylesheet document must be free threaded in order to be used with the XSL Template object"
Here is my code. Please help. Thanks.
var xslTemplate = new ActiveXObject("Msxml2.XSLTemplate.3.0");
var xmlProcessedOutput = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0");
var resultType = "html";
var xslProcessor = null;
xslTemplate.stylesheet = xslDoc;
xslProcessor = xslTemplate.createProcessor();
xmlSource = dataSrc;
xslProcessor.input = xmlSource;
xslProcessor.output = xmlProcessedOutput;
xslProcessor.transform();
I get "The XSL stylesheet document must be free threaded in order to be used with the XSL Template object"
Here is my code. Please help. Thanks.
var xslTemplate = new ActiveXObject("Msxml2.XSLTemplate.3.0");
var xmlProcessedOutput = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0");
var resultType = "html";
var xslProcessor = null;
xslTemplate.stylesheet = xslDoc;
xslProcessor = xslTemplate.createProcessor();
xmlSource = dataSrc;
xslProcessor.input = xmlSource;
xslProcessor.output = xmlProcessedOutput;
xslProcessor.transform();