Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 34833 invoked from network); 20 Dec 2004 15:48:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Dec 2004 15:48:11 -0000 Received: (qmail 48099 invoked by uid 500); 20 Dec 2004 15:34:40 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 48057 invoked by uid 500); 20 Dec 2004 15:34:40 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 48028 invoked by uid 99); 20 Dec 2004 15:34:38 -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 smtp-2.hut.fi (HELO smtp-2.hut.fi) (130.233.228.92) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 20 Dec 2004 07:34:35 -0800 Received: from localhost (katosiko.hut.fi [130.233.228.115]) by smtp-2.hut.fi (8.12.10/8.12.10) with ESMTP id iBKFYQGD014707 for ; Mon, 20 Dec 2004 17:34:26 +0200 Received: from smtp-2.hut.fi ([130.233.228.92]) by localhost (katosiko.hut.fi [130.233.228.115]) (amavisd-new, port 10024) with LMTP id 25386-01-6 for ; Mon, 20 Dec 2004 17:34:26 +0200 (EET) Received: from kosh.hut.fi (kosh.hut.fi [130.233.228.10]) by smtp-2.hut.fi (8.12.10/8.12.10) with ESMTP id iBKFXgpj014479 for ; Mon, 20 Dec 2004 17:33:42 +0200 Date: Mon, 20 Dec 2004 17:33:42 +0200 (EET) From: Tuomo L To: users@cocoon.apache.org Subject: Re: Request parameter parts in sitemap In-Reply-To: <20041220145441.43967.qmail@web11402.mail.yahoo.com> Message-ID: References: <20041220145441.43967.qmail@web11402.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on katosiko.hut.fi X-TKK-Virus-Scanned: by amavisd-new-2.1.2-hutcc at katosiko.hut.fi X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, thanks Kees. How about jxpath (and/or) request -InputModules? I've tried using those (looks like a possible solution), but cannot figure out the right syntax. I've tried: but it throws an error. Any other ideas, anyone? Cocoon 2.1.5. -Tuomo On Mon, 20 Dec 2004, Kees van Dieren wrote: > I'm afraid it's not possible. You could make a cocoon > action, witch does it. For example, create an action > fetchRightPart, witch can be called as following: > > value="{request-param:foo}"/> > > > This action could fetch the right part (the part after > the ':', and for example, return it in a > request-attribute. a Request attribute is accessable > via the request-attr template-tag (e.g. > {request-attr:foo} > > You could also make your own Selector (e.g. > SubStringSelector) but I think that making an action > is easier > Hope it helps. > --- Tuomo L wrote: > >> Hi, >> >> What is the correct syntax for getting a part of a >> request param's value >> in sitemap? >> >> For example, parameter "foo" equals "b:ar", and I >> need to get the part >> after ":". >> >> -Tuomo >> >> > --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: >> users-help@cocoon.apache.org >> >> > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org