Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 49086 invoked from network); 29 Nov 2007 15:37:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 15:37:53 -0000 Received: (qmail 46842 invoked by uid 500); 29 Nov 2007 15:37:38 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 46788 invoked by uid 500); 29 Nov 2007 15:37:38 -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 46777 invoked by uid 99); 29 Nov 2007 15:37:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 07:37:37 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.205.33.54] (HELO joe.tiscali.it) (213.205.33.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 15:37:40 +0000 Received: from chirale (217.133.32.17) by joe.tiscali.it (7.3.122) id 47470E0A003017FB for users@cocoon.apache.org; Thu, 29 Nov 2007 16:35:47 +0100 Received: by chirale (sSMTP sendmail emulation); Thu, 29 Nov 2007 16:35:51 +0100 Date: Thu, 29 Nov 2007 16:35:51 +0100 From: Tobia Conforto To: users@cocoon.apache.org Subject: Re: Cocoon and content-negotiation Message-ID: <20071129153551.GD450@chirale.ikkoku> References: <20071129095512.GA30241@mail.jerboaa.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071129095512.GA30241@mail.jerboaa.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Checked: Checked by ClamAV on apache.org Severin Gehwolf wrote: > select a particular XML file with the best-matching language extension > according to users Accept-Language HTTP headers. This is usually achieved in Cocoon using the LocaleAction: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/LocaleAction.html Other kinds of content negotiation, such as detecting patterns in the HTTP Accept header, can be performed with the RegexpHeaderSelector: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/RegexpHeaderSelector.html or similar selectors and matchers that access the HTTP headers. Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org