cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francis Vermeulen" <>
Subject RE: Pipeline execution nonsequential?
Date Tue, 07 Oct 2003 16:09:28 GMT
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.


-----Original Message-----
From: Chris Wilder-Smith []
Sent: Tuesday, October 07, 2003 6:02 PM
Subject: Pipeline execution nonsequential?


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:act type="style-selection">
    <map:transform src="stylesheets/{xsl-src}/>
  <map:serialize type="html"/>

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?



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

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

View raw message