This might work for you:
PHP Code:
var xml = new ActiveXObject("MSXML2.DOMDocument.4.0");
xml.async = false;
xml.load("YourFile.xml");
if (xml.parseError.errorCode != 0)
alert('Xml Load Error:'+xml.parseError.reason+' Line: '+xml.parseError.line);
// Load XSL
var xsl = new ActiveXObject("MSXML2.DOMDocument.4.0");
xsl.async = false;
xsl.load("YourFile.xsl");
if (xsl.parseError.errorCode != 0)
alert('Xsl Load Error: '+xsl.parseError.reason+' Line: '+xsl.parseError.line);
// Transform
document.open("text/html","replace");
document.write(xml.transformNode(xsl));
Bookmarks