Date: 2005-03-02T22:33:48 Editor: BertrandDelacretaz Wiki: Cocoon Wiki Page: SavingFilesToFileSystem URL: http://wiki.apache.org/cocoon/SavingFilesToFileSystem
Explicitely mention processPipelineTo in the introduction Change Log: ------------------------------------------------------------------------------ @@ -1,11 +1,9 @@ = Saving PDF files to the server file system = == Introduction == - Suppose we need to save a PDF file to the file system instead of sending it to the user's browser. I will explain later why we would need this. +Suppose we need to save a PDF file to the file system instead of sending it to the user's browser. I will explain later why we would need this. - Some people suggest to use SourceWrite transformer. But this solution is not elegant and smooth. - - The solution I sugget uses FlowScript technology introduced recently in Cocoon. +The Source``Writing``Transformer could be used for this, but here we describe a more "modern" solution using the ''cocoon.processPipelineTo'' method from flowscript, to save the result of a pipeline to a file. == Process == * Open the "sitemap.xmap" for "blablabla" directory and create a usual pipeline that creates PDF files from XML files. You can use any XML file and any XSL-FO stylesheet from Cocoon package. Bind it to some abstract extension, for example "*.do".
