> From: Andre Cusson [mailto:[EMAIL PROTECTED]] > > Hi, > > Thanks for your help again. > > We have both interactive and batch publishing requirements. > I currently feel that Cocoon addresses well the interactive publishing part.
Yes. > My feeling is also that batch publishing through Cocoon now is probably > inefficient. You can do batch publishing using Cocoon's command line interface (see run.[sh|bat]). > What do you think (how wrong am I) ? > Is there interest to better support batch publishing with Cocoon ? Cocoon right now is not very efficient when your requirement is on response to HTTP user request do some processing, and write result of processing into files, XML:DB, or SQL, or send mail, and finally, return HTTP response to the client. This is going to change with 2.1. > How about things like regenerating (ex: bacground) 5 compound documents of > about 1000 pages each to pdf and html, for example, or generating 50000 pdf > and html paychecks or invoices, each with a (pdf) labeled envelop ? If you don't mind cron, Cocoon can easily handle this via its command line. In fact, that's how xml.apache.org/cocoon and some other sites are done (see logo "Built with Cocoon") PS See comment below on your example. Vadim > Thank you. > Regards, > ac > > PS: I will lookup the SourceWritingTransformer, thank you. > > PSS: See example below. > > > > > -----Message d'origine----- > De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > Envoye : 18 juin, 2002 08:27 > A : [EMAIL PROTECTED] > Objet : RE: sitemap.xmap question > > > > From: Andre Cusson [mailto:[EMAIL PROTECTED]] > > > > Hi, > > > > Does this mean that a pipeline can only transform/produce a single > output > > file/page per invocation ? > > Usually - yes. See SourceWritingTransfomer (somewhere in the scratchpad) > for the unusual. > > > > Can sub-pipelines be used to generate multiple pages/files from a > single > > main incoming xml stream ? > > I'm not sure what that is, but I think no, not at this moment. > > Vadim > > > ex: > source: an xml file with 1000 invoices (with selection criteria for xpath > selection) > transform: render each to pdf > transform: for each, generate a pdf labeled envelop > serialize: for each, serialize to invoice.pdf file and to envelop.pdf file > > an alternative could be to do all invoices and then do all envelopes but it > is more work for both the human and the system It's doable with Cocoon command line, and with wise separation of job into several pipelines. Vadim --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>