[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

javascript problem

Subject: javascript problem
From: Paul Kelly <pjkelly5@xxxxxxxxxx>
Date: Wed, 17 Jul 2002 23:15:22 -0400
browser detect css different javascript
My first post so please be gentle :) I looked all through the archives for an answer.

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("&lt;link rel='stylesheet' href='css.css' type='text/css' /&gt;");
}
</script>
</head>



But this one will (it's further down inside the body of the html output):


<script language="JavaScript">
 {
document.write("&lt;hr width='10' /&gt;");
}
</script>


The first is a browser detect script whittled down to essentials. Can someone tell me the difference between the two? Is there a better way to do browser detection? I need to send different css to different browsers.


Thanks,
Paul

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.