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

Re: script tag in xsl

Subject: Re: script tag in xsl
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Fri, 15 Mar 2002 10:37:07 -0800
script tag in xslt
On Friday 15 March 2002 05:15, stevenson wrote:
> I am using :
>
> <script language="text/JavaScript" src="functions.js">
> 		</script>
>
> in my xsl but doesn't seem to work well. I was adviced to use:
>
> <script type="text/javascript" src="functions.js">
>     <!-- comment inserted for Internet Explorer -->
>   </script>

I read your earlier question on this subject (script with no content being 
collapsed to <script/> confuses IE), and I think the problem is that you have 
to use it like this:

<script type="text/javascript" src="functions.js">
  <xsl:comment> comment inserted for Internet Explorer </xsl:comment>
</script>

Otherwise the comment is completely ignored by the XSLT processors XML 
parser, and you end up with <script/> all over again.

>
> But still didn't work.
>
> Can anybody explain to me why it is not working and if possible a solution
> also. Please help!!

It wasn't clear whether you were showing the stylesheet or the output above, 
so if you are already using <xsl:comment>, I really don't know what the 
problem could be.  Check that functions.js is in the proper location and all 
that good stuff.  Also, try writing an HTML page by hand (or modify the 
output from your stylesheet) so that you know it works, and then try to get 
your stylesheet to match that.

-- 
Peter Davis
"Little prigs and three-quarter madmen may have the conceit that the laws of 
nature are constantly broken for their sakes."
-- Friedrich Nietzsche

 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.