[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl transformations on the client or server for NS6+


Subject: Re: [xsl] xsl transformations on the client or server for NS6+
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 2 Jul 2003 17:17:04 +0100

> I even upgraded to Netscape 7.1 just to triple-check 

well of course this javscript won't work in netscape

> var xml = new ActiveXObject("Microsoft.XMLDOM")

surprisingly enough netscape/mozilla's DOM implementation doesn't go by
the name of Microsoft.XMLDOM (or ActiveX for that matter)

If you _need_ to use client side javascript to trigger the
transformation then you'll need to use the usual javascript hacks to
work out what browser you are in and do whatever is neessary.

but most of the time you don't want to do that at all, 
just stick
<?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
in your xml file and both IE and netscape will find the stylesheet and
do the right thing (make sure source and stylesheet are served as
text/xml otherwise netscape and mozilla won't play)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml