Hi. Everyone
I’m using an xslt stylesheet to transform my xml document to an html doc. This task requires to include some pieces of JavaScript code in the <head> part of the target doc. unfortunately, xslt is unable to parse some of JavaScript signs and operators such as (&& - < - >= - ; and so on). Placing JavaScript code between <![CDATA[ and ]]> tags eliminates this issue but results in losing the functionality of JavaScript code. In addition, using symbols such as < instead of < turns us to parsing problem. Furthermore, using back slashes in front of "special" characters leads to parsing problem.
Any suggestions to sort out this issue
Your help is much appreciated
I’m using an xslt stylesheet to transform my xml document to an html doc. This task requires to include some pieces of JavaScript code in the <head> part of the target doc. unfortunately, xslt is unable to parse some of JavaScript signs and operators such as (&& - < - >= - ; and so on). Placing JavaScript code between <![CDATA[ and ]]> tags eliminates this issue but results in losing the functionality of JavaScript code. In addition, using symbols such as < instead of < turns us to parsing problem. Furthermore, using back slashes in front of "special" characters leads to parsing problem.
Any suggestions to sort out this issue
Your help is much appreciated