U have to edit your sitemap file
so cocoon know how to handle .js files
On Tue, 28 May 2002, Naquin, Beth wrote:
A cocoon newbie question:
I am trying to include a javascript function from an external .js file into
my xsl stylesheet.
I have the following in the xsl stylesheet:
head
Hi,
XSL transformer should not of course show the code from .js file in the result html.
Moreover
it usually transforms element with empty content to one tag. For example, in your case
the
script .../script should be transformed to one tag script .../. So there is
could be the
problem because
I have a silly question,
Why do we put {1}.js in js/{1}.js ?
-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 1:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Include external javascript file
You must add a pipeline for every filetype you wish
be
concerned by the request)
hope it's clearer (i doubt :)
fabien.
-Message d'origine-
De: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Date: mercredi 29 mai 2002 13:38
À: [EMAIL PROTECTED]
Objet: RE: Include external javascript file
I have a silly question,
Why do we put {1}.js in js/{1}.js
-Original Message-
From: TREGAN Fabien [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 29. Mai 2002 13:48
To: '[EMAIL PROTECTED]'
Subject: RE: Include external javascript file
Because it's cleaner :)
The thing you must remember is that ANAY request tht start with /cocoon/
is sent to COCOON
To: [EMAIL PROTECTED]
Subject: Re: Include external javascript file
You must add a pipeline for every filetype you wish to call in your
application.
Put your *.js files in the js directory and add the following to your
pipelines
map:match pattern=*.js
map:read src=js/{1}.js mime-type
Title: Include external javascript file
A cocoon newbie question:
I am trying to include a javascript function from an external .js file into my xsl stylesheet.
I have the following in the xsl stylesheet:
head
...
script src="cold_reverse_script.js" language=javascript /scri
You must add a pipeline for every filetype you wish to call in your
application.
Put your *.js files in the js directory and add the following to your
pipelines
map:match pattern=*.js
map:read src=js/{1}.js mime-type=text/javascript/
/map:match
Now you can call any