cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perry Molendijk" <pe...@inflexions.com>
Subject Re: Including javascript
Date Wed, 29 Nov 2000 13:33:41 GMT
You're right the formatter outputs <script language="JavaScript"
type="text/javascript" src="./script.js"></script> which it should. So the
problem has to be elsewhere. One solution is to compare a working html
example with the cocoon output. Javascript can throw up some interesting
challenges when it comes to xslt.

Perry

----- Original Message -----
From: "Donald Ball" <balld@webslingerZ.com>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, November 29, 2000 6:22 AM
Subject: Re: Including javascript


> On Wed, 29 Nov 2000, Perry Molendijk wrote:
>
> > Instead of:
> >
> > <script language="JavaScript" type="text/javascript" src="./script.js"/>
> >
> > write:
> >
> > <script language="JavaScript" type="text/javascript"
> > src="./script.js"></script>
> >
> > in your XSL.
> >
> > NS and IE browsers don't like the first way for some reason. It is
> > definitely not a cocoon issue because the exact same thing happens using
> > Saxon or XT xslt processors.
>
> but when either of these are rendered using the HTML formatter, you should
> end up with:
>
> <script language="JavaScript" type="text/javascript"
src="./script.js"></script>
>
> otherwise, it's a bug in the HTML formatter. right?
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Mime
View raw message