Xsl transform of javascript in xml
I have generated xml such as this:
<JAVASCRIPT>
<![CDATA[
function abc(n,s) {
if( n < 10)
return true;
if( s == "xxx")
return false;
and so on
}
]]>
</JAVASCRIPT>
What xsl i have to use to get correct javasript in html page?
I tried this:
<xsl:for-each select="/JAVASCRIPT">
<script type="text/javascript">
<xsl:value-of select="." disable-output-escaping="yes"/>
</script>
</xsl:for-each>
but it does not produce correct html javascript because of < and " on Oracle 11.2.
Any help is welcome.
Edited by: user573698 on 2.2.2011 0:43