JavaScript In Cocoon

Subject: JavaScript In Cocoon
From: "Paul Johnson" <paul@xxxxxxxxxxxxxxx>
Date: Thu, 04 Nov 1999 15:19:14 -0600
Hello Again,

I am trying to use Javascript in my XSL page, but I am having problems with the special characters getting changed to other equivalents.

This source output looks like this:
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Program Description&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello, world!&lt;DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;

This is what I haave in my XSL file:
<SCRIPT>
<![CDATA[
function winFunction()
{
        w =window.open("blank.htm","winName","width=300,height=300");
        w.document.write("<HTML><HEAD><TITLE>Program Description</TITLE>");
        w.document.write("</HEAD>");
        w.document.write("<BODY><DIV>Hello, world!<DIV></BODY></HTML>");
}
]]>
</SCRIPT>

I appreciated all your help,

Paul R. Johnson


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread