Hi Chris, the behaviour that you observe is intended Cocoon behaviour. The sitemap will always execute actions in a sitemap definition first and depending on what the action returns, execute or not the enclosed sitemap items: if the action returns a non-null object, the enclosed items (typically a standard pipeline) are executed. If it returns null, the next level items in the sitemap are executed. So in order to achieve what you want, you either need to set the parameters in your Action or write a custom generator.
Regards, Francis -----Original Message----- From: Chris Wilder-Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2003 6:02 PM To: [EMAIL PROTECTED] Subject: Pipeline execution nonsequential? Hi, I've got a requirement that I thought could be filled very easily by a custom action. Basically I need to set some request parameters and some sitemap parameters before the transformers start to transform, but after the generator. So, I've got a sitemap snippet that looks like this: <map:match pattern="passage/*"> <map:generate src="{0} type="dom"> <map:parameter name="config-file" value="configuration.xml"/> </map:generate> <map:act type="style-selection"> <map:transform src="stylesheets/{xsl-src}/> </map:act> <map:serialize type="html"/> </map:match> I've got debug logging in the custom generator as well as in the action and it appears that the action is executed before generator. Is something going awry here, or do I have a basic misunderstanding of how things are supposed to proceed. My fallback is to do the work now being done in the action in a transformer, but the action approach seemed to be more appropriate. Any thoughts? Thanks Chris --------------------------------------------------------------------- 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]