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

Re: <script /> and Netscape

Subject: Re: <script /> and Netscape
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 12 Dec 2001 18:15:25 +0000
rollover js
Hi Lou,

> When i do a transformation, my parser (Xalan)is changing following
> javascript line
>
> <script language="javascript1.2" type="text/javascript" 
> src="../../../scripts/javascript/rollover.js"></script>
> to
> <script language="javascript1.2" type="text/javascript" 
> src="../../../scripts/javascript/rollover.js"/>
> While this usually poses no problem Netscape doesn't understand the self 
> enclosing version of the script tag and will not render my page

Add a comment in the content of the script element using xsl:comment:

  <script language="javascript1.2" type="text/javascript"
          src="../../../scripts/javascript/rollover.js">
    <xsl:comment>Comment for buggy browsers</xsl:comment>
  </script>

For the record, IE also has this problem.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.