|
Subject: RE: [xsl] JavaScript and XSLT From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Thu, 20 Nov 2003 13:58:24 -0500 |
Hi Kevin
> Does anyone know the correct syntax for inserting a Node into a
JavaScript
> Function call?
>
> <a href="javascript:myFunction(<xsl:value-of select="."/>
);"><xsl:value-
> of
> select="."/></a>
>
[Didier PH Martin]
try this:
<a>
<xsl:attribute name="href">
<xsl:text>javascript:myFunction(</xsl:text>
<xsl:value-of select="."/>
<xsl:text>);></xsl:text>
</xsl:attribute>
<xsl:value-of select="."/>
</a>
Cheers
Didier PH Martin
http://didier-martin.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] JavaScript and XSLT, Wendell Piez | Thread | RE: [xsl] JavaScript and XSLT, Andrew Welch |
| RE: [xsl] JavaScript and XSLT, Andrew Welch | Date | Re: [xsl] JavaScript and XSLT, Rick Taylor |
| Month |