Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - =?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?= [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?=To: NULL Date: 4/3/2008 6:01:00 PM * Eugene wrote in microsoft.public.xsl: >[...] It would be best if you start a new thread for a new question. >How can I pass a variable or a parameter to this function? > >i. e.: > ><xsl:param name="sampleParam" select="@Sample" /> >... > <td onclick="onClickHandler( $sampleParam );"> You cannot "pass" parameters, XSLT takes an input document and trans- formation rules and creates a new document, you can only copy values into the new document. In this case, you could use an attribute value template: <td onclick="onClickHandler( {$sampleParam} );"> The content inside the { ... } braces would be evaluated during the transformation process. You might need to add quotes around the new value, e.g. like <td onclick="onClickHandler( '{$sampleParam}' );"> Depending on the value space of the parameter. -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
