xsl-list
[Top] [All Lists]

Calling js from xslt

2002-10-15 04:15:36
Hi:

I have a html page that loads a javascript file.
Onload of the page I do the xslt transformation.
Within my XSL file I try to execute a function from
the javascript file previously loaded but for some
reason it does not seems to execute it. I have tried
different combination of CDATA and scrip tags with no
results. 
This is kind of what I want to accomplish:

<xsl:template match="/"> 
        <table>
        <tr><td>
        <script>Display("Hello")</script>
        </td></tr>
        </table>
</xsl:template>

The reason I don't create this function within my XSL
file using extensions is that I have variables declare
in the javascript file that I need to access from
here. If I create an onclick event it works fine. 

Thanks.



__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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



<Prev in Thread] Current Thread [Next in Thread>
  • Calling js from xslt, Juan Carlos Gonzalez <=