How To Add Javascript To An XSL Stylesheet Using <!CDATA[]]>

There are several methods of including Javascript inside an XSL stylesheet. Using <!CDATA[]]> is one method.

  1. <!-- Start of Javascript -->
  2. <script language="JavaScript" type="text/javascript">
  3. <![CDATA[
  4. // Insert Your Javascript Here
  5. // End the CDATA with the following:
  6. ]]>
  7. </script>
  8. <!-- End of Javascript -->