Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 6910 invoked from network); 19 Sep 2003 05:45:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Sep 2003 05:45:51 -0000 Received: (qmail 12945 invoked by uid 500); 19 Sep 2003 05:45:17 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 12917 invoked by uid 500); 19 Sep 2003 05:45:17 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 12904 invoked from network); 19 Sep 2003 05:45:16 -0000 Received: from unknown (HELO mail2.mobicomk.ru) (217.106.95.130) by daedalus.apache.org with SMTP; 19 Sep 2003 05:45:16 -0000 Received: by mail2.mobicomk.ru (Postfix, from userid 501) id CF39050C2FE3; Fri, 19 Sep 2003 09:42:58 +0400 (MSD) Received: from support.lan.mobicomk.ru (unknown [10.10.5.100]) by mail2.mobicomk.ru (Postfix) with SMTP id D9D4450B45E6 for ; Fri, 19 Sep 2003 09:42:57 +0400 (MSD) Date: Fri, 19 Sep 2003 09:43:04 +0400 From: Yury Mikhienko To: users@cocoon.apache.org Subject: Re: Hello ! Can I generate PDFs and XLS through a document object and Cocoon ? Message-Id: <20030919094304.5420a888.Yury.Mikhienko@mobicomk.ru> In-Reply-To: <5744FAECB4B8864F83CB05F2E1D16EEB18AD8D@coso.staff.vuw.ac.nz> References: <5744FAECB4B8864F83CB05F2E1D16EEB18AD8D@coso.staff.vuw.ac.nz> Organization: Mobicom-Kavkaz X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N What about using the cocoon xreporter? > Hi Jonathon > > If you already have a class which generates a JDOM object, you could refer to it in an XSP (this is probably the easiest way), or write a Transformer that wraps the JDOM object and serializes it as SAX. > > Or, if you don't already have this Java class, you should consider doing the whole thing using existing Cocoon components, without Java programming, with a pipeline like this: > > 1) use the SQLTransformer to query the database > 2) use an XSLT to convert the SQL results (XML) to another XML representation, appropriate to your data model > 3) use another XSLT to convert to your presentation format (XLS) > > Cheers! > > Con > > > -----Original Message----- > > From: jonathan wong [mailto:john78wong@yahoo.com] > > Sent: Friday, 19 September 2003 1:30 p.m. > > To: users@cocoon.apache.org > > Subject: Re: Hello ! Can I generate PDFs and XLS through a document > > object and Cocoon ? > > > > > > Dear Joerg , > > > > Hello ! I am so pleased to hear it is possible . I > > want to design my application as : > > > > 1. some data are stored in a database > > 2. a class gets a resultset and create a JDOM document > > object . > > 3. the class fit the database data to the document > > object . > > 4. how can I match the JDOM document object to the > > corresponding XSL and generate a XLS ? > > > > So , possible ? Thank you ! > > > > --- Joerg Heinicke wrote: > > > Yes, should be possible by writing your own simple > > > generator. Where do > > > you get the JDOM object from? > > > -- Best regards, Yury Mikhienko. IT ERP group head, ZAO "Mobicom-Kavkaz" --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org