Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 24847 invoked from network); 17 Oct 2005 08:47:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 08:47:40 -0000 Received: (qmail 54291 invoked by uid 500); 17 Oct 2005 08:47:39 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 54245 invoked by uid 500); 17 Oct 2005 08:47:38 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 54230 invoked by uid 99); 17 Oct 2005 08:47:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 01:47:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 01:47:39 -0700 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id j9H8lG4q027468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Oct 2005 03:47:16 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id j9H8lGZO027404 for dev@forrest.apache.org; Mon, 17 Oct 2005 03:47:16 -0500 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Mon, 17 Oct 2005 18:47:12 +1000 From: David Crossley To: dev@forrest.apache.org Subject: Re: Include mechanism for forrest... Message-ID: <20051017084712.GA5937@igg.indexgeo.com.au> References: <435140A9.9060903@brakkee.org> <4351596A.7020302@apache.org> <43516270.1050405@brakkee.org> <20051017061533.GA4440@igg.indexgeo.com.au> <43535B8A.6030306@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43535B8A.6030306@apache.org> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ross Gardler wrote: > David Crossley wrote: > >Also Cocoon will cache the results of each pipeline, so if > >the xincluded file changes, then the changes will have > >no effect. > > The XInclude transformer is not cacheable. This is good with respect to > the problem you identify, but bad with respect to performance issues, > since the include is processed regardless of whether the included > document is changed, thus the generated document can never be cached. Ah yeah, sorry. I had things the wrong way around. So it is not a practice that we want to encourage, though if people want to do it, then they should be able to. Akin to using the document() function. -David > For simple includes we should use CInclude instead, this is cacheable, > however, CInclude does not allow the use of XPath so does not fit this > use case. > > Ross