You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joakim Verona <jo...@verona.se> on 2004/04/23 09:35:55 UTC

use flowscript or sitemap for conditionaly selecting output pages?

I have a flowscript that winds up doing a "sendpage" to a pipeline 
producing a table from data generated from a cgi script.
this script either returns a table or an error code
I would like to jump to different pages depending on the result, that 
is, either a text page describing that there was no data, or a table.

What would be the best way to do this?

a) having flowscript read the stream generated by the cgi script, 
examine it, and either forward to the table generator or the error page

This would maybe involve storing the entire dataset in memory which maybe
isnt all that eficient and also i dont know how to send a dom structure 
from flowscript to a page

b) having the sitemap check the data from the cgi script an use a map 
selector to jump to the right page somehow

This would maybe be better but then I would loose the overview the 
flowscript gives me over the flow of the program

What is best?

Regards,
/Joakim


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