cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <>
Subject cocoon 3: xslt and pickup java scripts
Date Wed, 25 Nov 2009 10:59:51 GMT
Hello !

I have a strange observation to share:
"when multiple javascripts are included in an XSLT transformation, to
land in the <head> of an html page, it is observed that some are never
fetched, by FireFox 3.5.5 (Ubuntu)." 

I clarify: exerpt 1: from sitemap, pipeline for static resources:
 <map:pipeline type="async-caching"> 
      <map:match pattern="images/{name}.jpg">
       <map:read src="presentation/images/{map:name}.jpg"
mime-type="image/jpeg" />
       <map:match pattern="images/{name}.gif">
        <map:read src="presentation/images/{map:name}.gif"
mime-type="image/gif" />
      <map:match pattern="css/{name}.css">
       <map:read src="presentation/style/{map:name}.css"
mime-type="text/css" />
      <map:match pattern="css/images/{name}">
       <map:read src="presentation/style/images/{map:name}"
mime-type="image/png" />
      <map:match pattern="js/{name}.js">
        <map:read src="presentation/javascript/{map:name}.js" />

<xsl:template match="/">
    <title> Herein Thesaurus </title>   
   <link rel="stylesheet" type="text/css"
   <link rel="stylesheet" type="text/css"
   	<script type="text/javascript"
    <script type="text/javascript"
    <script type="text/javascript"
   <script type="text/javascript"
   <script type="text/javascript">
		$(function() {
				collapsed: true,
				animated: "medium",
				persist: "location"
I detailed the log to debug level for the cocoon output, and, to my
amazement, I find that the pipeline does not react at all: javascripts 
jquery_treeview and jquery_cookie are never fetched.

Observation: when I place the same html under the form of a static html
page, all the scripts are nicely fetched.

What could be the cause of this - admittedly strange - phenomenon?
Anybody observed a similar test case?

Reinhard, as you make heavy use of rich client javascripting, do you
know about this?
Am I overlooking something essential?
I see no reason why the result of a xslt transformation would behave
different, so obviously I am.

Kind regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message