cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarry Liu <javast...@gmail.com>
Subject Re: How can I pass this parameter to xsl file
Date Tue, 19 Apr 2005 15:24:52 GMT
Great! It works! 

Thanks Peter.





On 4/19/05, Peter Kröpfl <peter@groebi.com> wrote:
> 
> > 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"/>
> >  .....
> >
> 
> you could try to do the following:
> 
> <map:transform src="dir.xsl">
>   <map:parameter name="parameter_name" value="{request-param:col}"/>
> </map:transform>
> 
> and in your xsl:
> 
> <xsl:param name="parameter_name"/>
> 
> and use it like this:
> 
> <blabla value="{$parameter_name}/" />
> 
> I have not tested this code, but i think it could be working ;-)
> 
> hth,
> peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

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


Mime
View raw message