Daniel Fagerstrom wrote:
hmm, the "src" attribute of generators desribes, what is feed into the component. In the case of a servlet service generator, the output stream of a servlet is used as stream input.
Rather something that is transformed to SAX output.
The "data" parameter defines the content that is passed to the servlet service. IMO that's not the starting point of the generator.
IMO it is ;)

The normal case:

Source ==[octet stream]==> Generator ==[SAX]==> ...

Servlet service generator as I see it:

Source ==[octet stream]==> Generator ==[SAX]==> ...
                             |  ^
                             v  |
                        ServletService

As you can see, the connection to the servlet service is something that differ from the ordinary generator usage, and because of that it is natural to put it in a parameter.

:-) yes, technically that's of course right but from a user's POV the generator uses a servlet service as source. The data is the payload added to the request and only the _indirect_ source for the calling pipeline.

--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

Reply via email to