Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 35156 invoked from network); 14 May 2007 15:22:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 15:22:00 -0000 Received: (qmail 56648 invoked by uid 500); 14 May 2007 15:22:04 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 56579 invoked by uid 500); 14 May 2007 15:22:04 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 56568 invoked by uid 99); 14 May 2007 15:22:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 08:22:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.237.222.182] (HELO smtp.nada.kth.se) (130.237.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 08:21:57 -0700 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [192.168.105.137] ([62.84.203.102]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id l4EFLZMV015937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 May 2007 17:21:35 +0200 (MEST) Message-ID: <46487E7A.4060007@nada.kth.se> Date: Mon, 14 May 2007 17:21:30 +0200 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: More problems with implementing servlet services References: <4640A55B.8070200@tuffmail.com> <46424753.1020005@nada.kth.se> <4643DB37.8070009@reverycodes.com> <464477AB.4010903@nada.kth.se> <46448C13.2070508@apache.org> <464509E6.4010406@reverycodes.com> <46458BBF.7020909@apache.org> <4646C241.6040103@apache.org> <46477F2C.8020708@apache.org> <4647FE2F.80404@apache.org> <464813FE.3050807@nada.kth.se> <4648781E.6040607@apache.org> In-Reply-To: <4648781E.6040607@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Reinhard Poetz skrev: > Daniel Fagerstrom wrote: >>> What about reversing the logic: Instead of >>> >>> >>> >>> >>> >>> >>> >> value="servlet:test2:/extract-html"/> >>> >>> >>> >>> >>> >>> >>> >>> we could use >>> >>> >>> >> src="servlet:test2:/extract-html"> >>> >>> >>> >>> >>> >>> It doesn't make that much difference for generators, but would save >>> one line each for serializers and transformers. >>> >>> WDYT? >> It would save a line, but especially for the generator it would >> obscure the function. For all other generators the src parameter is >> used for *reading* stream input. With your proposal the data >> parameter would instead get that role and the src parameter would be >> used as something that is a service that you post something to. I >> think that would be more confusing. >> >> Also for the servlet service transformer and serializer, "src" sound >> like something you read from rather than something you post to. > > hmm, the "src" attribute of generators desribes, what is feed into the > component. In the case of a servlet service generator, the output > stream of a servlet is used as stream input. Rather something that is transformed to SAX output. > The "data" parameter defines the content that is passed to the servlet > service. IMO that's not the starting point of the generator. IMO it is ;) The normal case: Source ==[octet stream]==> Generator ==[SAX]==> ... Servlet service generator as I see it: Source ==[octet stream]==> Generator ==[SAX]==> ... | ^ v | ServletService As you can see, the connection to the servlet service is something that differ from the ordinary generator usage, and because of that it is natural to put it in a parameter. /Daniel