i have a tiny little problem with xslt, js and html entities, eg. within a template:
If the xsl:output method is html, the CDATA section would work. If the xsl:output method is xml, the < and > signs would still be converted.
To get around this problem, you may define the script element to not behave this way using the xsl:output element. you can also force the method of the output using xml or html
...