xsl-list
[Top] [All Lists]

Re: calling java script in xsl

2006-03-06 02:14:17

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


--~------------------------------------------------------------------
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>
--~--




--
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.

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>