Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT processing on IE11?

What has happened to the XSLT processing in IE11?

On IE8/9/10, you can use:

if (window.ActiveXObject) {
    var xslt = new ActiveXObject("Msxml2.XSLTemplate");
    ....
}

On Chrome/Firefox/Safari, you can use:

else { 
    var xsltProcessor = new XSLTProcessor();
}

But on IE11, neither of these are supported. Does anyone know how this can be accomplished?

like image 432
gallivantor Avatar asked Sep 19 '13 10:09

gallivantor


Video Answer


1 Answers

Try

if (window.ActiveXObject || "ActiveXObject" in window)

This worked for me working with IE11 and allowed me to instantiate ActiveX objects since the standard old check was being bypassed.

like image 120
Nick Webb Avatar answered Sep 18 '22 19:09

Nick Webb