This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: passing parameters to javascript
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: Re: [xsl] passing parameters to javascript
- From: "Tom Gilbert" <tom dot gilbert at cartanova dot com>
- Date: Tue, 20 Mar 2001 06:41:56 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
I've just found it easier to declare JavaScript in a variable
and then use it in attributes.
<xsl:variable name="JSfunction">foo('<xsl:value-of
select="whatever"/>');</xsl:variable>
<a href="{$JSfunction}">
Tom
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list