Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 887D4E9BC for ; Thu, 13 Dec 2012 15:53:31 +0000 (UTC) Received: (qmail 65688 invoked by uid 500); 13 Dec 2012 15:53:31 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 65434 invoked by uid 500); 13 Dec 2012 15:53: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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 65305 invoked by uid 99); 13 Dec 2012 15:53:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 15:53:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mansour.alakeel@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 15:53:16 +0000 Received: by mail-lb0-f179.google.com with SMTP id gm13so1881470lbb.24 for ; Thu, 13 Dec 2012 07:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OL0bUeKwYjs+2ITBHL8juytIu0IXBQQP0NQtESjIMDQ=; b=LZsYECbTc0LoNPhRDD51XxlBq7MUwEQKGHGgZIYoTWMr8bY34/GfxdDm8dRfmduGUx Kn7SDCmFOikVuMcllP854uLOOjETOBjjO2DL2XRuw+zB2tvPgMPI7pSi9SkK+2x4Y9UP FixhJs79tsUmf2dx2lcOy+/mhN9vM6rf2hcO6J27V7Gz+KXDIaoGiKyOai5s4h6TuDLp FTxNxuFcD+F3ltfwq6pIMUwc6U4dsQWzWKd/pYZmxebS9mLA85h6LcHIC3COYhi9YjcI Mfe6JoSC2BMJyHEoeS1xSe6JVFwfa1OMC9GjJt4wwKpK5QN/CRdlPnSc4AksHIWU/3qR iz4A== MIME-Version: 1.0 Received: by 10.112.40.101 with SMTP id w5mr1091848lbk.74.1355413975601; Thu, 13 Dec 2012 07:52:55 -0800 (PST) Received: by 10.112.49.165 with HTTP; Thu, 13 Dec 2012 07:52:55 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Dec 2012 10:52:55 -0500 Message-ID: Subject: Re: Path selector - Cocoon 2.2. From: Mansour Al Akeel To: users@cocoon.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Thank you Robby. Here is how I did it, since I need to two characters language id: On Thu, Dec 13, 2012 at 6:10 AM, Robby Pelssers wrote: > All you need is a correct matcher: > > > > > > > > > -----Original Message----- > From: Mansour Al Akeel [mailto:mansour.alakeel@gmail.com] > Sent: Wednesday, December 12, 2012 9:42 PM > To: users > Subject: Path selector - Cocoon 2.2. > > Hello all, > > I am looking to select a path for a directory depending on language prefix. For example, let's say I have > > C:\repo\english\dir_1 > > C:\repo\english\dir_2 > > C:\repo\english\dir_3 > > C:\repo\english\dir_4 > > > C:\repo\french\dir_1 > > C:\repo\french\dir_2 > > C:\repo\french\dir_3 > > C:\repo\french\dir_4 > > > I have multiple matchers, for different type of documents. For example: > > > .. > > > I would like to turn this into a matcher for both languages with two characters representation of the language. For example: > > en/doc1/*.xml AND fr/doc1/*.xml > > How can I do selection the correct path with this ? In other words, use if else ? Is there a current selector that helps in this ?? > > Thank you > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org