[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: javascript
Hi Stevenson, > In xsl, how can I insert a JavaScript? I have tried: > > <Script language="JavaScript" src="functions.js"></script> > > But it didn't work. Can someone help? I've found that Internet Explorer doesn't like script elements that don't have any content (perhaps because with the XML output method they don't have a close tag). You can get around the problem by inserting a comment within the script element: <script type="text/javascript" src="functions.js"> <!-- comment inserted for Internet Explorer --> </script> You can generate this script element from XSLT with: <script type="text/javascript" src="functions.js"> <xsl:comment> comment inserted for Internet Explorer </xsl:comment> </script> Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|