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 0F443108E0 for ; Thu, 19 Dec 2013 15:53:21 +0000 (UTC) Received: (qmail 77085 invoked by uid 500); 19 Dec 2013 15:52:05 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 77040 invoked by uid 500); 19 Dec 2013 15:51:57 -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 76914 invoked by uid 99); 19 Dec 2013 15:51:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:51:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pflynn@ucc.ie designates 213.199.154.185 as permitted sender) Received: from [213.199.154.185] (HELO db8outboundpool.messaging.microsoft.com) (213.199.154.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:51:34 +0000 Received: from mail87-db8-R.bigfish.com (10.174.8.226) by DB8EHSOBE027.bigfish.com (10.174.4.90) with Microsoft SMTP Server id 14.1.225.22; Thu, 19 Dec 2013 15:51:14 +0000 Received: from mail87-db8 (localhost [127.0.0.1]) by mail87-db8-R.bigfish.com (Postfix) with ESMTP id EC31D4E0144 for ; Thu, 19 Dec 2013 15:51:13 +0000 (UTC) X-Forefront-Antispam-Report: CIP:143.239.1.24;KIP:(null);UIP:(null);IPV:NLI;H:mail4.ucc.ie;RD:mail4.ucc.ie;EFVD:NLI X-SpamScore: -2 X-BigFish: VPS-2(zzbb2dI98dI1432Izz1f42h2148h208ch1ee6h1de0h1d18h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah1fc6hzz1de098h17326ah8275dh1de097h186068h18602eh1cd15fiz2fh2a8h839h947hd25he5bhf0ahfa3h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h1b0ah224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1f5fh1fe8h1ff5h209eh22d0h2336h1155h) Received-SPF: pass (mail87-db8: domain of ucc.ie designates 143.239.1.24 as permitted sender) client-ip=143.239.1.24; envelope-from=pflynn@ucc.ie; helo=mail4.ucc.ie ;mail4.ucc.ie ; Received: from mail87-db8 (localhost.localdomain [127.0.0.1]) by mail87-db8 (MessageSwitch) id 1387468272445590_29263; Thu, 19 Dec 2013 15:51:12 +0000 (UTC) Received: from DB8EHSMHS027.bigfish.com (unknown [10.174.8.243]) by mail87-db8.bigfish.com (Postfix) with ESMTP id 68D0F54004D for ; Thu, 19 Dec 2013 15:51:12 +0000 (UTC) Received: from mail4.ucc.ie (143.239.1.24) by DB8EHSMHS027.bigfish.com (10.174.4.37) with Microsoft SMTP Server (TLS) id 14.16.227.3; Thu, 19 Dec 2013 15:51:11 +0000 Received: from [143.239.128.196] (ccepub196.ucc.ie [143.239.128.196]) by mail4.ucc.ie (8.14.4/8.14.4) with ESMTP id rBJFpBPn023459 for ; Thu, 19 Dec 2013 15:51:11 GMT Message-ID: <52B315EF.2090106@ucc.ie> Date: Thu, 19 Dec 2013 15:51:11 +0000 From: Peter Flynn Organization: University College Cork User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Subject: Re: Getting the value of the browser selector References: <5294B9B6.9070400@ucc.ie> <52B2BB42.8060801@ucc.ie> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginatorOrg: ucc.ie X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-Virus-Checked: Checked by ClamAV on apache.org On 19/12/13 12:46, Christopher Schultz wrote: > Peter, > >> On Dec 19, 2013, at 4:24, Peter Flynn wrote: >> >> Let me try again in a shorter post :-) >> >> 1. Has anyone ever used the browser selector? >> >> 2. Can it be used to pass the *value* to a transformation as a parameter without resorting to map:when, instead of just doing selection? > > Isn't the "value" of the browser selector the same as the "user-agent" header value? I don't think so. http://cocoon.apache.org/2.1/userdocs/browser-selector.html says: .... ... ... ... In other words you can take alternate action based on the test="..." value, but you cannot pass that actual value into the XSLT as a parameter. > You can just pass-in the header to the transformation... No need for the browser selector. But then I'd have to parse the user-agent string in my XSLT. The whole point of the browser selector is that it's done for you in the sitemap. ///Peter -- Peter Flynn | Electronic Publishing Unit | IT Services | University College Cork | Phone +353 21 490 2609 | Email pflynn@ucc.ie | Web www.ucc.ie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org