From dev-return-101934-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Mon Nov 23 07:34:11 2009 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 55862 invoked from network); 23 Nov 2009 07:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 07:34:10 -0000 Received: (qmail 51479 invoked by uid 500); 23 Nov 2009 07:34:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 51342 invoked by uid 500); 23 Nov 2009 07:34:09 -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 51333 invoked by uid 99); 23 Nov 2009 07:34:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 07:34:09 +0000 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: domain of simone.tripodi@gmail.com designates 209.85.219.218 as permitted sender) Received: from [209.85.219.218] (HELO mail-ew0-f218.google.com) (209.85.219.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 07:33:59 +0000 Received: by ewy10 with SMTP id 10so78264ewy.18 for ; Sun, 22 Nov 2009 23:33:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=70s6UFh0Id3Xj9U07RS0esWxAsROIORo+oUR63mKFq0=; b=OVnSoVnDw6SkUFdhJYc1YUzaZKdESP8aourW0xJxijx5Y5k5WEwb+oR/u1eZEhuXgx JY1X/ygbCyH9a8pdw6R1wAYkBopfIZwICqMfbbPIFOJZwQWOfStxgoQ9qLdVifNxi+1j Tt1O8Z9HZbHu8DcoUlOG/pZdDvFmMVbUENiFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RwW58UU9Fw3nVHVAsPb+x736Xgx9S5axkrekAjrW4sU5Q6pfabyysCW149BIIeqM+k saXablFAOfsP0vFKrtvcu9cq1FjKAcqERiuNn429PDcy43eWAU/NIqsDlNJRJjWrPHpk YngkEYls1Tume8rh8R0yxhoZZYOKy7T+5UQcg= MIME-Version: 1.0 Received: by 10.213.107.16 with SMTP id z16mr4399409ebo.47.1258961619007; Sun, 22 Nov 2009 23:33:39 -0800 (PST) In-Reply-To: <4B0A39B4.6080601@apache.org> References: <4173dc210911220458w6d6822e3g25727ed284481c65@mail.gmail.com> <4B094A4B.20406@apache.org> <1258956765.2735.7.camel@joske-laptop> <4B0A39B4.6080601@apache.org> Date: Mon, 23 Nov 2009 08:33:38 +0100 Message-ID: <4173dc210911222333t7636b9dbrf06f6b18df3a151c@mail.gmail.com> Subject: Re: XInclude optimization From: Simone Tripodi To: dev@cocoon.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Sylvain, indeed, that's yet another exception I didn't think, thanks for your clarification!!! Bonne journ=C3=A9e, a bientot ;) Simo On Mon, Nov 23, 2009 at 8:28 AM, Sylvain Wallez wrote: > Jos Snellings wrote: >> >> Hmmm, I guess the XPath expression is known before the parsing begins? >> I remember I have done a similar thing, where a chunk had to be isolated >> from a document that came by via a SAX stream, but here the xpath >> expression was something like: "/element1/element2[@id=3Dsomenumber]". >> >> Theorem: any XPath expression can be evaluated with a SAX filter. >> Proof? >> Do you know some exceptions? >> > > What about this one : //foo[bar[position() =3D 3]//baz], find all element= s > "foo" whose 3rd "bar" child has a "baz" descendent element. > > This requires to buffer the contents of every "foo" element to inspect th= eir > chidren sub-tree. > > Sylvain > > -- > Sylvain Wallez - http://bluxte.net > > --=20 http://www.google.com/profiles/simone.tripodi