Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 78561 invoked by uid 500); 3 Dec 2001 11:38:09 -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 78545 invoked from network); 3 Dec 2001 11:38:06 -0000 Mime-Version: 1.0 X-Sender: media@pop3.demon.co.uk Message-Id: In-Reply-To: References: <3C07D227.35EB8C39@apache.org> <3C08F63F.E277555A@apache.org> Date: Mon, 3 Dec 2001 11:37:08 +0000 To: cocoon-dev@xml.apache.org From: Jeremy Quinn Subject: Writing a Transformer, getting a Serializer Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 10:49 am +0000 2/12/01, Jeremy Quinn wrote: >Maybe I'll have a go at writing a test "FileResourceWriterTransformer", to >investigate the process of taking input from the user, having it modify a >Resource using XSLT then writing it out again. Would someone mind helping me with some Cocoon internals? I am pretty sure I know how to write a Transformer (at least I have some great examples!), but I do not know how to get a Serialiser inside a Transformer. What I am thinking of is this: I would like to pass as a parameter to the Transformer, the name of the Serialiser (as set up in the SiteMap), that you want the Transformer to use when it writes out your XML Fragment to file. Something like this: xml no Then in the "compose()" method, I want to take the (SiteMap) name of the Serialser, and retrieve the Component, releasing it in the "dispose()" method. Is this possible? Am I looking at this the right way? Thanks for any help regards Jeremy -- ___________________________________________________________________ Jeremy Quinn Karma Divers webSpace Design HyperMedia Research Centre --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org