Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - how can I use javascript to set xsl:param? >Thread Next - Re: how can I use javascript to set xsl:param? Re: how can I use javascript to set xsl:param?To: NULL Date: 9/9/2008 7:58:00 AM
"bgraves" <bgraves@w...> wrote in message
news:677d268e-4f0f-4500-a4a7-9b7b96136e8f@p......
>I get a error ("GetCheckboxes() is an unknown XSLT function") when I
> do this:
>
> <xsl:param name="ProdIDs">
> <script type="text/javascript" Language="JavaScript">
> <![CDATA[
> function GetCheckboxes(f)
> {
> for(var i = 0;i<f.Compare.length;i++)
> {
> if(f.Compare[i].checked)
> {
> tempArr[tempArr.length] = f.Compare[i].value //if checked, get value
> }
> }
> return tempArr
> }
> ]]>
> </script>
> <xsl:value-of select="CheckCheckboxes(this)"/>
> </xsl:param>
Please explain what you are attempting. You can run script inside an XSLT,
although which script language etc. is processor dependent.
However you need the xsl:script element, not the HTML version you have
above.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
