Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 93609 invoked by uid 500); 10 May 2001 14:51:12 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 93553 invoked from network); 10 May 2001 14:51:08 -0000 Message-ID: <3AFAAB0A.3744ED06@spectral.se> Date: Thu, 10 May 2001 16:51:54 +0200 From: Mats =?iso-8859-1?Q?Nor=E9n?= Organization: Spectral AB X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "cocoon-dev@xml.apache.org" Subject: Generator, Components question Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hejsan, First off, I would like to thank you guys for a great piece of software! Thanx! Now to my question: The sitemap is great for setting up pipelines and relating URI to them but I would like to do it in a more dynamic fashion. The application I�m developing is based on the concept of a page. A page contains components like paragraphs, pictures, links, search-objects etc. The description of a page is saved in a database. Basically the description contains references to the components that should be included in the page at requesttime. There are generators for each kind of component to enable them to be generated outside of a page. What I would like to do is to create a page generator which based on a database request triggers the generators for each component. Basically I would like to achieve dynamic content aggregation. The flow would look something like this: request --> pagegenerator transformer-->serializer | | | | -- >paragraphgenerator-->paragraphgenerator-->linkgenerator->paragraphgenerator-- Flow for the pagegenerator: generate: 0.9 Generate wrapping XML 1. SQL question to retrieve ids for pageobject 2. For each page object: setup the component (set the src to the id we like to retrieve, pass along the objects from the pagegenerators setup) generate 3. Generate wrapping XML Is this approach possible? How do I let each component call the pagegenerators contenthandler? ie how do I get a reference to it... This approach would mean that each component would generate a startdocument, how would C2 react to multiple startdocuments in a stream? How can I prevent that? A possible solution would be to implement the contenthandler interface in the pagegenerator and then "swallow" all startdocuments from the components but I don�t see how it can be done. Maybe this approach is wrong...suggestions anyone? /Regards Mats - Mats Nor�n Spectral AB Ban�rgatan 37 115 22 Stockholm mailto:mats.noren@spectral.se --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org