> From: Ben Skelton [mailto:[EMAIL PROTECTED]] > > Hallo, > > I am trying to get my head around the cocoon internals. In particular I have > an old library which takes XML in an InputStream, performs some (significant) > processing and produces XML making it available in an OutputStream (a > Document is also available). > > Is it possible to insert this processing into a cocoon pipe? I have had a look > at the source code for Transformers, in particular CIncludeTransformer which > I see as the closest example. > > I could write a Transformer to parse the input into the Transformer, on the > appropriate endElement, the object could go away and do something, but I > can't see how to insert the results back into the pipe.
See DOMStreamer (.xml.dom package). > Does any one have a simple example of this, or an easy explanation they would > share? XMLDBTransformer in the scratchpad does something similar. Vadim > Are there any resources for extending cocoon available? - I see on > Amazon that there'll be a couple of books published soon. > > Many thanks > --Ben --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>