I have been trying to call a function that I wrote in my xslt but everytime I
call a very basic function the error console says the function is not defined.
I have tried a bunch of things but nothing seems to work.
I don't know if it matters but I use javascript in the original html file to
generate the new html and js by using the xsl processor depending on the
browser.
Here is my code.....
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<script language="javascript">
<![CDATA[
function trythis()
{
alert("hello");
}
]]>
</script>
</head>
<body>
<xsl:apply-templates select="page/content"/>
</body>
</html>
</xsl:template>
<xsl:template match="content">
<h2>Welcome to this page!</h2>
<input type='button' value='java' onclick='trythis()'/>
<p> Here is a new page. </p>
--~------------------------------------------------------------------
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>
--~--