RE: JavaScript and XSLT2003-11-20 11:41:52Does 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> Thanks in advance.
Use:
<a>
<xsl:attribute name="href">blah
Or in simple cases like this use 'attribute value templates' (AVT's):
<a href="myFunc({.})">
(the braces effectively replace xsl:value-of)
cheers
andrew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
|
||||||||||||||||