I have an XSLT that checks for the successful source-write message and
does a <meta HTTP-EQUIV="refresh"...> redirect in HTML.
Otherwise it shows an error message.
So the idea is to transform the XML output of source-write into HTML
that does the redirection (either through a meta tag or through
javascript code).
The only issue with it is that the browser can disable both refresh
option and javascript. In this case you can still generate some html
with a link to the next page that the user will need to click if he is
too paranoid to allow javascript and meta redirects.
Using map:redirect does not work since the pipeline processor does not
need to generate any output if there is a redirect in the pipeline
(there should not be any response body with the redirect). So the
processor does not do any transformations (why bother?), and your
source-write is not invoked.
Igor
christian bindeballe wrote:
Hi everyone
hope you are enjoying the weekend or maybe even watching the worldcup
which is over here in germany?
I was just wondering if any of you know how I can change Cocoon's
behaviour after a source-write transformation. after a (succesful)
transformation Cocoon displays a message stating where and what has been
saved. I'd rather have it redirect to some page else, since outputting
this is not very nice for the workflow. If right after the transformer I
put a <map:redirect-to uri="foo"/> the transformation does not take
place. I can't put it behind the serializer (which would be the next
element in the pipeline) either, since that has to be the final element
(and even if I do, no redirect happens). is this some logging feature
that I can just turn off?
Cocoon 2.1.9 on WinXP
any suggestions are greatly looked forward to
best wishes,
christian
---------------------------------------------------------------------
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]