>> What do you mean by "Write a custom Reader class that retrieves that
>> PDF and puts it down the stream." ?!

>The org.apache.cocoon.reading.Reader interface is a combination of a
>Generator and a Serializer. Look at the classes in there for samples.

>Giacomo

If I understood things correctly from the javadocs, a MyReader could
take input (Source) from a local file on the server or from some URL.
How about the situation when a user has to submit the contents of a
non-XML document through a form (e.g. by coping the file content into an
textarea) that is to be handled by an Action. I could get an String
attribute containing that non-XML document from the Request, parse the
String, convert it to XML and send that down the pipeline (the latter
step is not entirely clear to me: should I put the freshly generated XML
in Session, so I should write to some OutputStream). Is there another
way, possibly more in coherence with the way how things are done in
Cocoon2? (It is somewhat difficult to look through all these classes and
to find out what they do and how one should use them.)

Thanks for your help,

-- 
Andre H. Juffer              | Phone: +358-8-553 1683
The Biocenter and            | Fax: +358-8-553-1141
    the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW:
http://www.biochem.oulu.fi/research.html

---------------------------------------------------------------------
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]>

Reply via email to