xsl-list
[Top] [All Lists]

Re: using javascript with xsl

2005-09-17 21:11:22
Hi, I didn't really understood your problem, but when I put some JS in
a file which will be manipulated with XSL, I always put the JS inside
a CDATA section, like this:

<script>
<![CDATA[
header();
]]>
</script>

To avoid any misinterpretation,  by the XSLT processor.

Bye
Francesco.

On 9/17/05, Wassim Mansour <wassimmansour(_at_)hotmail(_dot_)com> wrote:
Hi, I have some javascript functions in a *.js file, when I use them inside
a regular html file they work fine, but they fail when I try to generate the
html containing the calls using xsl (only on Mozilla, IE is fine with it).
here it is:
<script>
header(); // IE works fine, Mozilla doesn't do it the right way.
</script>
later....
<script>
footer(); // IE works fine here too, Mozilla doesn't recognize any function
call after the first one.
</script>
NOTE: I have tried both functions on Mozilla using a regular html file, and
they worked fine.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
www.GetFirefox.com !!
http://kywocs.blogspot.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>