Subject: RE: [xsl] javascript problem From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 18 Jul 2002 07:55:04 +0300 |
Hi, > Can someone please tell me why this script will not execute: > > <head> > <xsl:copy-of select="document('meta')/meta" /> > <title><xsl:value-of select="page/@title"/></title> > <script language="JavaScript"> > { > document.write("<link rel='stylesheet' href='css.css' > type='text/css' />"); > } > </script> > </head> > > > But this one will (it's further down inside the body of the > html output): > > <script language="JavaScript"> > { > document.write("<hr width='10' />"); > } > </script> This isn't an XSLT related issue. Anyhow, script element hasn't had a language attribute in ages, use type instead. > The first is a browser detect script whittled down to essentials. Can > someone tell me the difference between the two? Well, one is executed in the head of the document, which might not be dynamic in that sense. > Is there a better way > to do browser detection? I need to send different css to different > browsers. Content negotiation of some sort on the server. Santtu XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] javascript problem, Jeni Tennison | Thread | [xsl] Including an external xml sou, Dan Henke |
[xsl] Including an external xml sou, Dan Henke | Date | RE: [xsl] Testing the following ele, Jarno . Elovirta |
Month |