Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 30725 invoked from network); 4 Jan 2008 22:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2008 22:39:42 -0000 Received: (qmail 88807 invoked by uid 500); 4 Jan 2008 22:39:30 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 88789 invoked by uid 500); 4 Jan 2008 22:39:30 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 88780 invoked by uid 99); 4 Jan 2008 22:39:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 14:39:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.151.18.208] (HELO dedi17.smart-servers.de) (83.151.18.208) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 22:39:19 +0000 Received: from xdsl-87-78-45-240.netcologne.de ([87.78.45.240] helo=dilbert.crrrwg.de ident=foobar) by dedi17.smart-servers.de with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JAv9f-0003t2-TP for modules-dev@httpd.apache.org; Fri, 04 Jan 2008 23:36:44 +0100 Received: from asus.crrrwg.de ([192.168.201.92] ident=93d8f9e93a0d5ee2009c52351440730a) by dilbert.crrrwg.de with esmtp (Exim 4.63) (envelope-from ) id 1JAvC3-0000zr-3U for modules-dev@httpd.apache.org; Fri, 04 Jan 2008 23:39:11 +0100 Subject: Re: Transcoding module for libxml2-based filters From: Joachim Zobel Reply-To: jzobel@heute-morgen.de To: modules-dev@httpd.apache.org In-Reply-To: <20080104220644.2eeeb7d3@grimnir> References: <20071225225455.17186c7a@grimnir> <1199483236.3923.44.camel@test.asus> <20080104220644.2eeeb7d3@grimnir> Content-Type: text/plain Organization: Not organized Date: Fri, 04 Jan 2008 23:39:07 +0100 Message-Id: <1199486348.3923.67.camel@test.asus> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 87.78.45.240 X-SA-Exim-Rcpt-To: modules-dev@httpd.apache.org X-SA-Exim-Mail-From: jzobel@heute-morgen.de X-SA-Exim-Scanned: No (on dedi17.smart-servers.de); SAEximRunCond expanded to false X-Virus-Checked: Checked by ClamAV on apache.org Am Freitag, den 04.01.2008, 22:06 +0000 schrieb Nick Kew: > > This means two different filter functions, right? > > No, one function, with its behaviour determined by its ctx. Sure? IMHO two functions that call the same infrastructure function might be clearer. But YMMV, I am an enemy of state. [...] > > Why do you think it is necessary to ask other filters for > > configuration this way? What is the advantage of this above simply > > having configuration options for the post filter? > > That gets messy, with two filters both of AP_FTYPE_RESOURCE. > If I hack it with offsets, that breaks interaction with other > filters. Hmmmm. Maybe this is because I always would configure my filter chain explititely. But everybody using your module will also have to configure his filter chain explicitely, simply because he wants your pre filter to run before his own AP_FTYPE_RESOURCE filter. AddOutputFilter xml2enc-pre;user-filter;xml2enc-post or AddOutputFilter xml2enc-pre;sax;i18n;xml2enc-post or AddOutputFilter xml2enc-pre;sax;htmlplus;i18n;xml2enc-post OK, messy has its point here. Sincerely, Joachim