Subject: [xsl] Re: XSL - Javascript problem From: "Annelies Vercruysse" <kontant@xxxxxxxxxxx> Date: Thu, 25 Oct 2001 10:29:48 +0200 |
Can you show us your stylesheet?
<html> <head> <title>Test page with javascript code</title>
<script type="text/javascript"> function onloadBody() { alert('When you see this, javascript works!'); } </script>
<body onload="onloadBody();"> <table border="1"> <tr> <th>Title</th> <th>Artist</th> </tr> <xsl:for-each select="CATALOG/CD"> <tr> <td><xsl:value-of select="TITLE" /></td> <td><xsl:value-of select="ARTIST" /></td> </tr> </xsl:for-each> </table> </body>
</xsl:template> </xsl:stylesheet> -------------------------------------------------------------------- XML:----------------------------------------------------------------
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <CATALOG> <CD> <TITLE>Hide your heart</TITLE> <ARTIST>Bonnie Tyler</ARTIST> </CD> <CD> <TITLE>Greatest Hits</TITLE> <ARTIST>Dolly Parton</ARTIST> </CD> <CD> <TITLE>Still got the blues</TITLE> <ARTIST>Gary Moore</ARTIST> </CD> </CATALOG> -------------------------------------------------------------------- --------------------------------------------------------------------
From my experience with mozilla's xslt I remember there were some problemswith script invocation in generated on the fly html documents, but I remember there were
- -- Oleg Tkachenko Multiconn International, Israel
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] A better solution..., Casadome, Francisco | Thread | Re: [xsl] Re: XSL - Javascript prob, Oleg Tkachenko |
RE: [xsl] A better solution..., Jarno . Elovirta | Date | RE: [xsl] A better solution..., Casadome, Francisco |
Month |