Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Call a function defined in =?UTF-8?B?4oCcbXN4c2w6c2NyaXB04oCd?= =?UTF-8?B?IGJsb2NrIGZyb20g4oCcb25jbGlja+KAnSBoYW4=?= >Thread Next - Re: =?utf-8?Q?Call_a_function_defin?= =?utf-8?Q?ed_in_=E2=80=9Cmsxsl:script?= =?utf-8?Q?=E2=80=9D_block_from_=E2=80=9Conc?= =?utf-8?Q?lick=E2=80=9D?= =?Utf-8?Q?Re:_Call_a_function_defined_in_=E2=80=9C?= =?Utf-8?Q?msxsl:script=E2=80=9D_block_from_=E2=80=9Conclic?= =?Utf-8?Q?k=E2=80=9D?=To: NULL Date: 4/3/2008 8:20:00 AM
Thank you.
How can I pass a variable or a parameter to this function?
i. e.:
<xsl:param name="sampleParam" select="@Sample" />
...
<td onclick="onClickHandler( $sampleParam );">
...
</td>
<script type="text/javascript">
function onClickHandler (sampleParam ) {
...
}
</script>
"Martin Honnen" wrote:
> Eugene wrote:
>
> > <xsl:template match="Iteration">
> > <td onclick="user:onClickHandler( )">
>
> That looks as if you want to use script in the HTML result document of
> the transformation. In that case forget about msxsl:script, simply do e.g.
> <td onclick="onClickHandler();">
> ...
> </td>
> <script type="text/javascript">
> function onClickHandler () {
> ...
> }
> </script>
> that is simply insert a HTML script element in the transformation result.
>
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
