Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 69344 invoked from network); 6 May 2005 22:22:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 22:22:25 -0000 Received: (qmail 18085 invoked by uid 500); 6 May 2005 22:25:12 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 17771 invoked by uid 500); 6 May 2005 22:25:10 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 17756 invoked by uid 99); 6 May 2005 22:25:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from v07274.home.net.pl (HELO v07274.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 06 May 2005 15:25:10 -0700 Received: from gprs7.idea.pl (HELO ?172.20.147.96?) (lgawron.mobilebox@home@217.116.100.249) by matrix15.home.net.pl with SMTP; Fri, 6 May 2005 22:22:15 -0000 Message-ID: <427BEE26.2010708@mobilebox.pl> Date: Sat, 07 May 2005 00:22:30 +0200 From: Leszek Gawron User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Flow Input Modules and sitemap global variable ?? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N oceatoon wrote: > Hi devers > > I posted this in Users, but with no luck I'm trying the devers. > Is it possible to call an input module from flow to retreive a value like > realpath? > I know I could pass it from the sitemap but it's a bit complicated, because > this particular variable concerns all my pipelines. cocoon-core.xconf states: | InputModules are a replacement to reading values directly | e.g. from request parameters. By using this abstraction and | indirection, other components can be more generic and changes | to the application logic are easier. | | A number of components already use InputModules: the sitemap processor, | flow, some matchers, the linkrewriting transformer, database actions | and more. this will lead you to src/blocks/linkrewriter/java/org/apache/cocoon/transformation/LinkRewriterTransformer.java which in turn reveal that there is a src/java/org/apache/cocoon/components/modules/input/InputModuleHelper.java > > My other question is how can I put the result of a input module into a > sitemap global variable, because the sitemap takes my {inputmodule:bla} as > it is, I would like it to evaluate it and set my global var with the > result. this does not seem like a good idea. What are you trying to achieve? -- Leszek Gawron lgawron@mobilebox.pl IT Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65