Yes it is. But the reason behind my question is that when I use <xsl:output method="html"> I faced no problem with parsing JavaScript which embedded in xslt file. However, using <xsl:output method="xml"> instead, results in parsing problem of JavaScript. Despite the fact that I placed all JavaScript code between <[!CDATA[[ and ]]>.
I tried another way by placing all JavaScript in an external JavaScript file and import it to xslt file like this
<script src="validation.
js" type="text/javascript"></script>
but xslt failed to import this file even though they are in same directory.
Please help