Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 73973 invoked from network); 14 Sep 2000 14:40:54 -0000 Received: from web6204.mail.yahoo.com (128.11.22.115) by locus.apache.org with SMTP; 14 Sep 2000 14:40:54 -0000 Message-ID: <20000914144054.14819.qmail@web6204.mail.yahoo.com> Received: from [198.240.213.26] by web6204.mail.yahoo.com; Thu, 14 Sep 2000 07:40:54 PDT Date: Thu, 14 Sep 2000 07:40:54 -0700 (PDT) From: Giacomo Pati Reply-To: Giacomo.Pati@pwr.ch Subject: Re: AW: C2: Uploader needed To: cocoon-dev@xml.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N --- Carsten Ziegeler wrote: > > > > > _I_ was going to write it as a Generator - but then we (Carsten > Ziegeler) > > and I discussed this and he said (mumbling) that a "transformer" > would be > > more flexible and allow us to configure the transformer (and what > > it returns > > as a result) on a per-call basis. At least that is what I think he > meant > > :-). He's da man (read: chief architect) when it comes to that - > > I just code > > to relieve the frustration of managerial duties :-). > > > > But perhaps he has more to add - hey wake up Carsten! > > > Ups....ok, > > > >> > > > At the moment we are considering an "UploadTransformer" which > would > > > grab the > > > uploaded file from the HTTP stream and write that out to > wherever.. > > > > Wouldn't it be better to implement that on a Generator base? Could > you > > explain why you want to implement it as a Transformer? > > > In my opinion a Generator generates xml, an Upload-"Component" > instead > receives xml and stores it whereever wanted. > I thought if it is an UploadTransformer which is controlled by some > elements > like e.g. the sql transformer, the upload can be embedded in any xml > resource. So this means for an Upload initiated by a browser you need an custom Generator anyway to put the received file into the SAX event stream, right? > The UploadTransformer would find its elements, store the file and > replace his > elements with his result element. (This could of course also be done > by a taglib > but we *love* Transformers...) Just curiosity, tell me why you love Transformer more than other components? > The separation if it is a Generator or Transformer is not very easy, > perhaps > it would really be better if it is an Action component. Sorry, I > didn't follow > the thread so I after I woke up now, I go to the mail archive and > search there.... If you get through :( Giacomo ===== -- PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202 Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201 Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch CH-8166 Niederweningen Web: http://www.pwr.ch __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/