cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Rigby" <ro...@gondolier.org.uk>
Subject RE: xpath condition on xml data in sitemap
Date Thu, 22 Nov 2007 11:37:12 GMT
Something with an action [1] or XSP action [2]?

generator
transformer A
action
-- transformer B1
-- transformer C
-- serializer 
transformer B2
transformer C
serializer 

The action analyses the stream from transformer A and returns
<action:set-success/> or <action:set-failure/>.  On success, the content of
the action is executed:  tB1:tC:s and execution ends.  On failure, the
content is skipped and execution continues.
 
Robin

[1] http://localhost/cocoondox/2.1/userdocs/concepts/actions.html
[2] http://wiki.apache.org/cocoon/XSPAction
 

-----Original Message-----
From: S├ębastien Geindre [mailto:sebastien.geindre@meteo.fr] 
Sent: 20 November 2007 14:07
To: users@cocoon.apache.org
Subject: xpath condition on xml data in sitemap

hi all,

i need to make a conditional treatment in my sitemap :

generator --> transformer A -----(if condition on xml)-----> transformer 
B1 ----------|---> transformerC --> serializer
                                                          
(else)                          -----> transformer B2 ----------|

How can i make this condition on xml data in the stipe map ?
Which component should i use ?
the condition could be an xpath expression...

thanks for your help.

-- 
S├ębastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message