[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: How do I perform this transformation in Mozilla?
  • From: "James Rayner" <rcxau@y...>
  • Date: Mon, 3 Mar 2003 18:08:42 +1100

I have the following script that works in IE. What is the equivalent for Mozilla/Netscape 7?
All help greatly appreciated
 
James Rayner
 
<script language="javascript" type="text/javascript">
function dlxml()
{
    var source = new ActiveXObject("Msxml2.DOMDocument");
    source.async = false;
    source.resolveExternals = true;
    source.load("xmlfile.xml");
 
    var stylesheet = new ActiveXObject("Msxml2.DOMDocument");
    stylesheet.async = false;
    stylesheet.resolveExternals = false;
    stylesheet.load("stylesheet.xsl");
 
    divInfo.innerHTML = source.transformNode(stylesheet);
 
 
}
</script>
 
<about
   name="RCXAU"
   email="rcxau@y..."
   question="Why is the buggiest browser the most widespread" />
<VRtech
   motto="Bringing you all things IT"
   web="http://vrtechau.tripod.com/" />

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member