Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 60525 invoked from network); 11 Jul 2008 22:09:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 22:09:28 -0000 Received: (qmail 39031 invoked by uid 500); 11 Jul 2008 22:09:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 38947 invoked by uid 500); 11 Jul 2008 22:09:26 -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 38936 invoked by uid 99); 11 Jul 2008 22:09:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 15:09:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of solprovider@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 22:08:34 +0000 Received: by nf-out-0910.google.com with SMTP id c7so1068004nfi.8 for ; Fri, 11 Jul 2008 15:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=C2VxK5S4wyNXSVyp/5jYnb54TLFyEu03ZcgwAlIi+bk=; b=nmQI3aCd5BKHsBdKUeQ+qOaLJlWWm78yMmnA8P9qGcuV4MeuhFdOrdg3jEWeHk397J 3DXeDhpEipU3UCXl2dvGYVtdhvTUU9279Tq+2WyKsd3JJbi3HDOt9JPbFQ/LKJUqGIE/ GARFTq8Kvb9CJjgS7I2Im/WxsleecwcJNwtHk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=atjsWtMQ678GFz5ssBsd/S3EYrPdRa5pzfY83N07bP6C03lH9ewpc9pUbQYf6m0l7e MNHB4jAgv3yiXBgySfMxD7QK0jzZNxAl++z8MiJFOu5uzoKQ+S2FOqOdunJ1Fs2Bdq9I TOYvspztI+9WLWKWXxY6yDrWd9Vuam+pVl6sc= Received: by 10.210.65.17 with SMTP id n17mr6923195eba.92.1215814135771; Fri, 11 Jul 2008 15:08:55 -0700 (PDT) Received: by 10.210.21.16 with HTTP; Fri, 11 Jul 2008 15:08:55 -0700 (PDT) Message-ID: Date: Fri, 11 Jul 2008 18:08:55 -0400 From: solprovider@apache.org Sender: solprovider@gmail.com To: users@cocoon.apache.org Subject: Re: call pipeline from XSLT In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200807091701.58802.Kjetil.Kjernsmo@computas.com> <200807101105.49232.Kjetil.Kjernsmo@computas.com> X-Google-Sender-Auth: 06dd5bf66e4107af X-Virus-Checked: Checked by ClamAV on apache.org On 7/10/08, Heather Rankin wrote: > I want to be able to call a pipeline from another pipeline's XSLT in the > same sitemap. (The reason I need to call the pipeline from the XSLT as > opposed to from the sitemap directly is because I need to pass the XML > input data as parameters and I see no other way of doing this.) > Seems I should be able to use the xslt doc() function with the cocoon:/ > protocol, e.g. > > > > However, I get a "MalformedURLException: unknown protocol: cocoon" > error. > Is this because I'm calling pipeline4 within a nested serviceServlet > 'chain'? E.g: > pipeline1 calls pipeline2 calls pipeline 3 (which calls pipeline4 via > the XSLT) > > (This is actually part of a bigger issue: I'd like to call an external > Block from within an XSLT but I wanted to get the answer to this > question first and then go from there...) > Heather IIUC, you want to lookup many entries based on data in the XML. You have not mentioned what handles the lookup. If you use the SQLTransformer, the second transformation adds several sql:execute-query elements. The third transformation calls the SQLTransformer. A fourth transformation may be needed to format the results of the the third transformation if they do not insert the desired HTML. This is a straight pipeline. No transformation inserts data from another pipeline; each just inserts the information needed for the next step. solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org