This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Javascript within XSLT


| 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]