Jump to content

Transforming XSLT to XHTML


Recommended Posts

You would need to change the Javascript code loading the files, if you want to use XSLT on responseXML with transformNode then with IE 10 you need to make sure you use the MSXML object, so change

function loadXMLDoc(dname){if (window.XMLHttpRequest)  {  xhttp=new XMLHttpRequest();  }else  {  xhttp=new ActiveXObject("Microsoft.XMLHTTP");  }xhttp.open("GET",dname,false);xhttp.send("");return xhttp.responseXML;}


function loadXMLDoc(dname){  var req;  if (typeof ActiveXObject !== 'undefined') {    req = new ActiveXObject('Msxml2.XMLHTTP.3.0');  }  else if (typeof XMLHttpRequest != 'undefined')  {    req = new XMLHttpRequest();  }  if (req) {    req.open('GET', dname, false);    req.send();    return req.responseXML;  }  // else handle case here that browser does not support ActiveXObject nor XMLHttpRequest}

Edited by Martin Honnen
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...