R
RC
Hello World,
I am try do call a JavaScript function from XSLT, but I got
function not avaible error. See "????" below.
Would someone out there tell me how?
Thank Q!
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html" />
<xsl:template match="/">
<html><head><title>Hello World</title>
<script type="text/javascript" language="JavaScript1.2">
function hello(w) {
return ("Hello " + w + "!");
}
//
</script>
</head><body>
<xsl:variable name="w" select='World' />
<!-- How do I call JavaScript function here? -->
<xsl:value-of select="????.hello($w)" />
</body></html>
</xsl:template>
</xsl:stylesheet>
I am try do call a JavaScript function from XSLT, but I got
function not avaible error. See "????" below.
Would someone out there tell me how?
Thank Q!
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html" />
<xsl:template match="/">
<html><head><title>Hello World</title>
<script type="text/javascript" language="JavaScript1.2">
function hello(w) {
return ("Hello " + w + "!");
}
//
</script>
</head><body>
<xsl:variable name="w" select='World' />
<!-- How do I call JavaScript function here? -->
<xsl:value-of select="????.hello($w)" />
</body></html>
</xsl:template>
</xsl:stylesheet>