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;}

to

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...