cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Geindre <>
Subject Pass parameters to a generator
Date Mon, 04 Dec 2006 17:57:15 GMT

Is it possible to give parameters to a directory generator ? and how to ?

Imagine, cocoon receive a httprequest with post data,
first, we transform the data included in th request

<map:generate type="stream">
	<map:parameter name="form-name" value="requestData"/>

Then transform it to have better meta-data

<map:transform src="stylesheets/request2meta.xsl"/>

Then i 'd like to read the content of the directory pointed by meta-data

<map:generate type="directory" src="{meta/directory}">
    <map:parameter name="depth" value="2"/>

will it work ??
how is it possible to 'feed' a generator ?


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

View raw message