cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarry Liu <javast...@gmail.com>
Subject How can I pass this parameter to xsl file
Date Tue, 19 Apr 2005 14:56:24 GMT
Hi everyone,

I have a question about parameter passing from script file to xsl as following:

   
in file  " tran.js ":

 function selectcol(){
    var colle= cocoon.request.get("collection");
    cocoon.sendpage("browse/", {col:colle});
}


in sitemap.xmap:

<map:match pattern="browse/**">
   <map:generate src="file:///Users/{1}" type= "directory"/>
   <map:transform src="dir.xsl"/>
 .....


Then, in " dir.xsl ", how can I get the value of "col" which was sent
from file "tran.js"?

Thanks for your kind help.

Jarry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message