Litrik De Roy wrote:
Imagine the following pipeline:

  <map:match pattern="delete">
    <map:generate src="delete.xml"/>
    <map:transform type="write-source"/>
    <map:redirect-to uri="list"/>
  </map:match>

I have noticed that the Source Writing transformer does not get executed ?
It looks like the sitemap is "optimizing" the pipeline and assuming "hey,
I'll need to redirect, why bother doing the generate and transform".

Does this work as designed, or am I missing something?

Hmm, I'm not 100% on the inner functionality of Cocoon's pipelines, but it could be the way they are assembled before any data is sent through.


PS: The use case for the above pipeline is displaying a list where the user
can delete some entry. This calls the "delete" url (typically with some
parameters) but I want to prevent that the browser shows the delete url in
the address bar. So I redirect to the list URL which refreshes the list and
displays a very nice URL (but unfortunately no longer executes the
transform).


If you're trying to delete a file, perhaps an action would be more appropriate?

Regards,

Tony


Litrik De Roy www.litrik.com






Reply via email to