This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Javascript within XSLT
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Javascript within XSLT
- From: Charlie Kaiman <ckaiman at i3solutions dot com>
- Date: Thu, 20 Apr 2000 10:06:15 -0400
- Reply-To: xsl-list at mulberrytech dot com
| No, in the XML output method it will produce < and >
| respectively, which in a conforming XHTML system is the right
| thing to put in a script element. For HTML use the html output method
| and then it will produce < and > as in html the script element has CDATA
| content.
My mistake. Just an fyi, my problem stemmed from the fact that IE 5
requires <xsl:comment> in script elements:
<SCRIPT><xsl:comment><![CDATA[
function yourJavaScript() {
...
}
]]></xsl:comment><SCRIPT>
Thank you for the clarification!
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list