Posted By

rumremix on 10/08/11


Tagged

javascript html xslt embed add within


Versions (?)

How to embed javascript and html inside xslt


 / Published in: XSLT
 

Place the following inside a <xsl:template> block

  1. <xsl:text disable-output-escaping="yes">
  2. <![CDATA[
  3. <script type="text/javascript">
  4. alert("you can use javascript");
  5. </script> <strong>HTML Content</strong>
  6. ]]></xsl:text>

Report this snippet  

You need to login to post a comment.