This is the simple code:
var xml= new ActiveXObject("Microsoft.XMLDOM")
xml.async=false
xml.load("invoice.xml")
var xsl=new ActiveXObject("Microsoft.XMLDOM")
xsl.async=false
xsl.load("invoice.xsl")
document.write(xml.transformNode(xsl))
The problem is that this does not work in Netscape, and I don't know why. There's postings about this everywhere, but no answers, can anyone help?
Also, what is a better way of doing things:
1. Using xml, dtd's and xsl to transform. With microsoft XMLDom or...
2. Use a
java parser DOM, in a
JSP or
servlet.