• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netscape and XML documents

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Channy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic