Hwo to do Hello World From XSLT to JavaScript?
From: RC (raymond.chui_at_nospam.noaa.gov)
Date: 03/29/05
- Next message: Daniel Scherrer: "java3d question"
- Previous message: yzzzzz: "Error loading log4j properties file"
- Next in thread: Anton Spaans: "Re: Hwo to do Hello World From XSLT to JavaScript?"
- Reply: Anton Spaans: "Re: Hwo to do Hello World From XSLT to JavaScript?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 12:21:03 -0500
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:style*** xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output 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:style***>
- Next message: Daniel Scherrer: "java3d question"
- Previous message: yzzzzz: "Error loading log4j properties file"
- Next in thread: Anton Spaans: "Re: Hwo to do Hello World From XSLT to JavaScript?"
- Reply: Anton Spaans: "Re: Hwo to do Hello World From XSLT to JavaScript?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]