In Firefox and Chrome, I’m using something like this to convert XML documents to DOM fragments using XSL:
var xsl = document.implementation.createDocument(); // i.e. a DOM document
var processor = new XSLTProcessor();
processor.importStylesheet(xsl);
var xml = document.implementation.createDocument(); // i.e. a DOM document
var fragment = processor.transformToFragment(xml, document);
In the actual code, xsl and xml are loaded from remote files using jQuery with dataType: "xml", so are both XML documents.
What is the equivalent in Internet Explorer?
try