Hi All!
I am using this simple html example page (see code below) to "join" the XML and XSL file together and show in the Browser to avoid any possible timing issues I had before, etc. All works fine in the Internet Explorer but no other browser seems to be knowing what to do (Safari, etc.)
Is there any OTHER intelligent way of doing the same transformation but in a way that it is understood by the majority of browsers?
THANKS!!!
GAbi.
Code:
<html>
<body>
<script language="javascript" for="window" event="onload">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("appdemo.xml")
// Load the XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("appdemo.xsl")
// Do the transformation
document.write(xml.transformNode(xsl))
</script>
</body>
</html>