aspose file tools*
The moose likes XML and Related Technologies and the fly likes Netscape and XML documents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Netscape and XML documents" Watch "Netscape and XML documents" New topic
Author

Netscape and XML documents

Channy
Greenhorn

Joined: Nov 18, 2002
Posts: 13
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.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by geek azoid:
This is the simple code:
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.

Is that working in IE ? It may not work in Netscape due to vb script ??(not sure).
If you would like to user java, then u can download XALAN from apache, it has got example servlets to convert xml + xsl in to HTML, u can modify them to your needs.


Spritle Software Blogs
Channy
Greenhorn

Joined: Nov 18, 2002
Posts: 13
Thanks for your response.
It's written in using javascript.
But yeah, any code examples using xalan, or any xerces info you have would be great.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netscape and XML documents