Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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?=

From: Bjoern Hoehrmann <bjoern@---------.-->
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/ 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent