cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: merging RequestGenerator and FileGenerator output.
Date Thu, 05 Jul 2001 15:19:22 GMT
Hi,

there are (at least) two solutions:

1. Use the file generator to read your xml document
   Specify the "use-request-parameter" parameter for the TraxTransformer in
your pipeline
   and you can use all request parameters with a variable in your stylesheet
($parametername)
   Take a look at the slide example.

2. Use content aggregation. You can use CA for this as well.
   One part would be your xml document and the other the output of the
RequestGenerator.
   Take a look at the aggregation news example.

I would suggest using 1 as it is the simpler solution.


Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de
================================================================

> Alexander Thomas wrote:
>
> Hi there.
>
> My particular problem:
>
> I just started on the Cocoon2 framework and would like to use it to
> process
> certain XMLdocuments. I have written an according xsl file which
> provides for
> a decent rendering of the xml files content on the users browser. Thus
> the
> processing pipe is organized in the following way:
>
> 1) FileGenerator reads XML document.
> 2) TraxTransformer transforms to HTML (including a form)
>
> Now I would like to apply manipulations on the original XML document on
> the
> basis of the users post  message. In my case the best way to digest the
> users
> request is the RequestGenerqtor. But in order to process the XML
> document
> once again I do seem to need the FileGenerator.
>
> My question(s):
>
> Is there an easy and efficent way to merge those xml files?
>
> The cocoon documnetation contains some remarks about mergers which seem
> to be
> able to do that, however I could not find them in the current release.
> Will
> those mergers be available in the future?
>
> Would it be appropriate to write a Generator class which produces the
> merged
> output?
>
> Any advice would be appreciated.
>
> Regards,
>
> Alexander Thomas
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message