xsl-list
[Top] [All Lists]

[xsl] problem with parsing JS inside a XSL file

2006-10-29 21:37:55
Greetings.

I have a XSL template which includes javascript code:

<xsl:template match="/">
        <script type="text/javascript">
           alert('<xsl:value-of select="list/id"/>');
        </script>
</xsl:template>


This works fine in FF and IE when I tie the XML directly to the XSL
(i.e. with: <?xml-stylesheet type="text/xsl" href="./directory/file.xsl"?>)

With FireFox I have no problems.

But, when I try to tie both files dynamicaly with the IE js ActiveXObject("Microsoft.XMLDOM");
it isn't working!

ANy idea what should I do?

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/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>
--~--

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