[thelist] Generating html links with XSLT
VOLKAN ÖZÇELİK
volkan.ozcelik at gmail.com
Wed Dec 28 15:14:26 CST 2005
Well you're almost done
<a href="#">
<xsl:attribute name="onclick">
<xsl:value-of select="concat('presetRecall("', 'fooo', '")')"/>
</xsl:attribute>
<xsl:text>Recall</xsl:text>
</a>
will resolve to:
<a href="#" onclick="presetRecall("fooo")">Recall</a>
Don't bother with the " entity : it will act identical to a
double quote (") which it actaully is :)
Here is a test script I used to prove it.
-------------
<script>
function dongi(argument){
if(argument=='fooo')alert('foooo');
}
</script>
<a href="#" onclick="dongi("fooo")">Recall</a>
-----------------
Script works without error on ie/moz/opera.
Cheers,
--
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/
More information about the thelist
mailing list