Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31038 invoked from network); 25 Feb 2005 12:41:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Feb 2005 12:41:39 -0000 Received: (qmail 28447 invoked by uid 500); 25 Feb 2005 12:41:31 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 28403 invoked by uid 500); 25 Feb 2005 12:41:31 -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 28389 invoked by uid 99); 25 Feb 2005 12:41:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail.itconnect.no (HELO mail.itconnect.no) (80.89.32.22) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 25 Feb 2005 04:41:29 -0800 Received: from [192.168.2.32] ([80.89.46.131]) by mail.itconnect.no (8.12.11/8.12.11) with ESMTP id j1PCfF2X020687 for ; Fri, 25 Feb 2005 13:41:16 +0100 Message-ID: <421F1CEC.2020700@xangeli.com> Date: Fri, 25 Feb 2005 13:41:16 +0100 From: Askild Aaberg Olsen User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: How to extend and use the BrowserSelector References: <1109328194.7539.18.camel@ferrari.brodreskift.no> In-Reply-To: <1109328194.7539.18.camel@ferrari.brodreskift.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ITCMAIL-MailScanner-Information: Please contact the ISP for more information X-ITCMAIL-MailScanner: Found to be clean X-MailScanner-From: askild@xangeli.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Kjell Arne Brødreskift wrote: > Hello all, this probably is a simple question with an obvious answer > to you, but I hope someone would take a little time and point me in > the right direction here. > > I have read about and tried the excisting BrowserSelector in Cocoon, > but just getting the name of the browser isn't enough. Browsers also > vary with versions and platforms. What I want is to match on the > user-agent in the sitemap. And then use selectors to point each > browser to the right stylesheet. > > And the question is: Is this the right way to go about this, and how > can you make this apply to every page on the site without interferring > with the rest of the sitemap? > > > Kjell Arne > You should be able to configure this in the map:selectors/map:selector part of the sitemap. The browserselector matches the *first* occurrence in the -list where the useragent-attribute is contained within the UserAgent-header field from the browser. A clever set of values and ordering would accomplish this. Another solution would be to use the HeaderSelector directly with the UserAgent-field, or use flowscript. Askild Aaberg Olsen --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org