|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: : Problems with Javascript block / Netscape
Hi Jeremy,
> I have some JavaScript in my XSL. (example below) This works fine
> with IE, but not with Netscape. The problem is that for instance
> this line here
>
> for(i = 0; i < numAvail; i++){
>
> gets converted into this
>
> for(i = 0; i < numAvail; i++){
>
> IE can handle the change from "<" to "<", but NS can't. Is there
> anyway to output these symbols in regular form?
It sounds as though you're outputting HTML, but not using the HTML
output method. The HTML output method should not escape less-than
signs in script elements. To use the HTML output method, do:
<xsl:output method="html" />
Chuck Evans' suggestion of putting the script in an external file and
referencing it is an even better solution if you're not generating
parts of the JavaScript on the fly.
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








