[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JavaScript In Cocoon

Subject: Re: JavaScript In Cocoon
From: "Paul Johnson" <paul@xxxxxxxxxxxxxxx>
Date: Fri, 05 Nov 1999 13:43:27 -0600
on xsl javascript use cocoon
Ok,

this is going to sound wierd, but try using the IBMparser and the Cocoon standard XSLT Parser.  Also, do this to make it type out your java script.

<SCRIPT>
<![CDATA[
function winFunction(desc)
{
        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>");
	w.document.write(desc);
	w.document.write("Hello, world");
	w.document.write("</DIV></BODY></HTML>");
}
]]>
</SCRIPT>


Let me know if this helps.

Paul R. Johnson

*********** REPLY SEPARATOR  ***********

On 11/5/99 at 11:57 AM Stefano Mazzocchi wrote:

>Kay Michael wrote:
>>
>> >
>> > I am trying to use Javascript in my XSL page, but I am having
>> > problems with the special characters getting changed to other
>> > equivalents.
>> >
>> I don't know whether cocoon supports it, but if you specify <xsl:output
>> method="html"> then angle brackets within an HTML SCRIPT element should be
>> output as is, i.e. not escaped. You could also try enforcing this behaviour
>> using disable-output-escaping="yes" (but I don't know if cocoon supports
>> that either).
>
>no, it doesn't (yet).
>
>But you should be able to do it using the HTML formatter. (you should
>consider moving this discussion on the Cocoon mail list which is more
>appropriate)
>
>--
>Stefano Mazzocchi      One must still have chaos in oneself to be
>                          able to give birth to a dancing star.
><stefano@xxxxxxxxxx>                             Friedrich Nietzsche
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.