Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 93609 invoked from network); 5 May 2005 13:22:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2005 13:22:48 -0000 Received: (qmail 71702 invoked by uid 500); 5 May 2005 13:24:24 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71682 invoked by uid 500); 5 May 2005 13:24:24 -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 71669 invoked by uid 99); 5 May 2005 13:24:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of martynas.jusevicius@gmail.com designates 64.233.170.200 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.200) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 05 May 2005 06:24:24 -0700 Received: by rproxy.gmail.com with SMTP id c16so412065rne for ; Thu, 05 May 2005 06:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B4jGwLSemJzcnJovC/8jSixyKVbQGinwoeRIj/FC3QsSFySIA6s/zzcXlWnuOBCeO4aPVpsPQGo7Nx7DGFzNF6EaC9uigj3GsHUjFcTfhFV3bobQpbeo7eXBPgV19M+vEGeOa2lJe7oMHaaAl7EoUBm8BdQTX3F3vw+dFvdqa6s= Received: by 10.38.76.11 with SMTP id y11mr439879rna; Thu, 05 May 2005 06:22:00 -0700 (PDT) Received: by 10.38.76.74 with HTTP; Thu, 5 May 2005 06:22:00 -0700 (PDT) Message-ID: Date: Thu, 5 May 2005 16:22:00 +0300 From: Martynas Jusevicius Reply-To: Martynas Jusevicius To: users@cocoon.apache.org, t.katelbach@systheo.com Subject: Re: Slashes in the URL match In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hm, what exactly do you mean? Substitute // with /* and switch back later? But /* has it's own meaning and can also occur in the URL, how could I tell if it needs to be replaced or not? Of course, I could come up with some different substituotion, but these URLs come directly from links in HTML, and having some non-standard syntax variation is not a good option. I mean, can I force Cocoon to pass me the match "as is", leaving it unchanged even if there are several slashes in a row? That would solve everything. I don't really understand why it is functioning like that. On 5/5/05, oceatoon wrote: > Martynas Jusevicius wrote: >=20 > > I have in my sitemap. Also, I'm trying get > > XPath URLs working. Therefore slashes in the URL matter much, for > > example: > > host.com/context/something/* > > is different from > > host.com/context/something//* > > Instead, Cocoon treats all repeated slashes as one, which obviously > > doesn't fit me. > > I was thinking, maybe that's some default URL or HTTP behavior, but > > looks like other similar implementation didn't have this problem: > > > http://www.xmldatabases.org/WK/blog/1031_How_do_you_manage_documents_in_t= he_database%3F.item > > So what should I do? Thanks in advance. > > > > Martynas Jusevicius > Why not change syntax // by /* and reinterpret it just before your xpath > query or do replace . >=20 > Tibor --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org