Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 67628 invoked from network); 3 Aug 2006 01:32:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 01:32:48 -0000 Received: (qmail 64785 invoked by uid 500); 3 Aug 2006 01:32:47 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 63817 invoked by uid 500); 3 Aug 2006 01:32:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 63806 invoked by uid 99); 3 Aug 2006 01:32:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 18:32:45 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of apachelist@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 18:32:44 -0700 Received: by nf-out-0910.google.com with SMTP id c31so921408nfb for ; Wed, 02 Aug 2006 18:32:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mWYGeLWK3+3tUI49+hrzfrXm4XrUImLYRsju/uWg1B6JCYHpBqkJv/ML670Ws6EpIt4rPfdxtAIV7+jMeTitpYPAJbuDDX1n3rf+T9KBbwQ5oBCTUSAxora65Ao8V1LE/2tYdv//sDTdVx4vmlrCHtXNISWAAXwwXyQCWJyG19Q= Received: by 10.49.93.13 with SMTP id v13mr1821109nfl; Wed, 02 Aug 2006 18:32:23 -0700 (PDT) Received: by 10.48.203.7 with HTTP; Wed, 2 Aug 2006 18:32:23 -0700 (PDT) Message-ID: <459b45dd0608021832r2dc01d93s59e290957ab8eb9d@mail.gmail.com> Date: Thu, 3 Aug 2006 11:32:23 +1000 From: "Scott Warren" To: users@cocoon.apache.org Subject: Re: Extract Document In-Reply-To: <080320060055.24467.44D1496B000824CF00005F9322007504389D9A0A050C0E9D0C@comcast.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_82966_21415936.1154568743248" References: <080320060055.24467.44D1496B000824CF00005F9322007504389D9A0A050C0E9D0C@comcast.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_82966_21415936.1154568743248 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the Tip but I really want to use just the Cocoon sitemap and components rather than using Java Code. Thanks again. Scott Warren On 8/3/06, crackeur@comcast.net wrote: > > Using VTD-XML you can extract a fragement by calling getElementFragment() > > http://vtd-xml.sf.net > > > -------------- Original message -------------- > From: "Scott Warren" > Can anyone give me a tip on the best way to extract a fragment of a > document using xpath? The Fragment Extractor Transformer doesn't seem to > do the job. Not that the documentation says much about what it does. I have > tried an XSL using the EXSLT dyn:evaluate function but this fails. Note the > xpath will come from parameters passed to the pipeline. > > Regards > > Scott Warren > > ------=_Part_82966_21415936.1154568743248 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the Tip but I really want to use just the Cocoon sitemap and components rather than using Java Code.

Thanks again.

Scott Warren

On 8/3/06, crackeur@comcast.net <crackeur@comcast.net> wrote:
Using VTD-XML you can extract a fragement by calling getElementFragment()
 
 
-------------- Original message --------------
From: "Scott Warren" < apachelist@gmail.com>
Can anyone give me a tip on the best way to extract a fragment of a document using xpath? The Fragment Extractor Transformer doesn't seem to do the job. Not that the documentation says much about what it does. I have tried an XSL using the EXSLT dyn:evaluate function but this fails. Note the xpath will come from parameters passed to the pipeline.

Regards

Scott Warren

------=_Part_82966_21415936.1154568743248--