[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: "McKeever, Marty" <marty.mckeever@xxxxxxxxxxxxxxxxx>
Date: Wed, 12 Dec 2001 13:24:12 -0500
marty script
I would expect this to cause errors in older browsers that do ot understand
the src="" attribute of the <script> tag, as they will try to evaluate the
nbsp's as javascript code.

A more suitable "placeholder" would be 
<script src="">//</script>
since // is a comment symbol in JS.

but as mentioned before, output method="html" is more likely the way to go.


> 
> I am using the following as a workaround:
> I defined an entity reference for "nbsp" at the top of the XSL.
> 
> And then used that reference to add a space element between 
> "<script>" and 
> it's closing "</script>" tag.
> 
> <script language="javascript1.2" type="text/javascript" 
> src="../../../scripts/javascript/rollover.js">&nbsp;&nbsp;&nbsp;
> </script>
> 
> Is this the way to go?
> Thanks
> 
> >Here is the question.
> >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
> >Any suggestions?
> >
> >Lou
> >
> >_________________________________________________________________
> >Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> >XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp.


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

 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.