Great! It works!
It works? I can't see how. The 'col' is stored as a flow attribute, not into a request parameter. Unless you have a request parameter called col as well. So you should use the flow-attribute input module to get at the value.
I think the syntax is:
cocoon.sendPage("browse/", {col:colle});<map:generate src="file:///Users/{flow-attribute:col}"/>That should be the correct syntax.
Regards, Upayavira
On 4/19/05, Peter Kr�pfl <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
