This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: <script /> and Netscape
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "L Rutker" <lrutker at hotmail dot com>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 12 Dec 2001 18:15:25 +0000
- Subject: Re: [xsl] <script /> and Netscape
- Organization: Jeni Tennison Consulting Ltd
- References: <F85pgXVWz1jUwOm9x4n000010b8@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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