Hi Anna,
 
if no cocoon standard solution exists for this problem, you could implement your own Transformer inheriting from Cocoon's AbstractTransformer. The transformer processes all elements of your XML stream in corresponding methods like startElement, etc. You could redefine these methods and implement your file writing stuff inside them.
 
Regards,
Elmar
 
-----Ursprüngliche Nachricht-----
Von: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 17. Dezember 2002 14:20
An: cocoon-users
Betreff: Writing output of pipeline to a file

Hello All!
I know that today I ask too many questions, but since cocoon is new to me,
sometimes I don't even know where to look for the information, so you are my only help.
Thanks for everyone who took time to answer my questions. Here is another one:
 
At the end of the pipeline the result file is output to the browser.
I need the result file also to be saved in the file on my hard drive.
How can I do this?
I read about the SourceWritingTransformer, but I understood that I can write <source:write> tag in xml only, not in xsl.
 
Or maybe I can use it to do what I need, and I just don't know how?
Please tell me.
 
Thank you very much for your help.
 
Anna

Reply via email to