From: "Carsten Ziegeler" <[EMAIL PROTECTED]>...
A cocoon pipeline is execute after the serializer is set, so
as long as you dont have a serializer, the pipeline does simply
nothing.
A redirect is executed immediately and then the processing stops.
I think I'll have to read this a couple of times before I really understand all the implications of this.
At first sight this seems to be a serious limitation.... but again... I migth not grasp it (yet).
So, in your case a pipeline with a generator and a transformer
is setup, but not executed; the redirect is reached and
executed.
So, using an action seems a better way. You can e.g. call
a pipeline from within the action and then making
your redirect
So I get:
- Generator
Strike generator from here...
- Action - Redirect
And the action will get executed even though there is no serializer? I think
I'm getting confused....
Litrik,
You are seriously missing something (and you were suspecting this already, so it won't be news to you ;-).
All sitemap components are divided onto two groups: direct components and indirect components. All sitemap processing happens in two stages. In the first stage, indirect components define what components pipeline will consist of, and instance of the pipeline is assembled. During the second stage, this pipeline instance is executed. Once you understand this simple fact, there will be no confusion.
Some reference material:
If you want to understand how sitemap works, read more in this thread:
http://marc.theaimsgroup.com/?t=101053465300001&r=1&w=2
Shortcut to the list of direct and indirect components:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101057440717758&w=2
Shortcut to the "lint" sitemap:
http://cvs.apache.org/viewcvs/cocoon-2.0/src/webapp/mount/lint/sitemap.xmap?rev=1.1&content-type=text/vnd.viewcvs-markup
Vadim
