This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <script /> and Netscape


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]