Subject:how to add onclick_ with try/catch to a xsl html transformation ? Author:Joe Robe Date:17 Jan 2008 07:22 AM
My html a xsl should produce contains something like
<div onclick_="try{MyFunction()}catch(){}"/>
This results in an error in xsl transformation that MyFunction is not a valid xslt function.
As one cannot use CDATA in attributes, is there an EASY workaround here to keep it in the attribute ( most likely I will be able to use <xsl:attribute, but I need to transform LOTS of code to xsl so this would be very tedious !)