Re: [xsl] calling java script in xsl

Subject: Re: [xsl] calling java script in xsl
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Mon, 06 Mar 2006 20:14:17 +1100
Don't think it is possible, what you can do, is write the javascript (or the call to javascript) as a product of the xslt. If you have the function, just pass the values into it using xslt.

eg:

<a href="javascript:someFunction('blah', {$some_parameter}) ...>

or

<a>
<xsl:attribute name="href">javascript:someFunction('blah', <xsl:value-of select="$some_parameter"/>)</xsl:attribute>
</a>


or you can write the javascript directly

eg:

<script>
var hello = <xsl:value-of select="element"/>
</script>

If you want more details, you will have to give us more information.

Cheers.

Kamal.


Rochak Palta wrote:


Hi,

How do we call java script in xsl?

Thanks,
Rochak






--
Kamal Bhatt

Tourism Technology Pty Ltd


T: +61 (02) 9956 7300 F: +61 (02) 9956 7411


Level 10, 1 Pacific Highway, North Sydney, NSW 2060



http://www.tt.com.au



-- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.

Current Thread