Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 42313 invoked from network); 6 Feb 2009 16:01:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 16:01:35 -0000 Received: (qmail 75963 invoked by uid 500); 6 Feb 2009 16:01:33 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 75905 invoked by uid 500); 6 Feb 2009 16:01:32 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 75817 invoked by uid 99); 6 Feb 2009 16:01:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 08:01:32 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 16:01:29 +0000 Received: from cocoon.zones.apache.org (localhost [127.0.0.1]) by cocoon.zones.apache.org (8.13.8+Sun/8.13.8) with ESMTP id n16G18Ps006865 for ; Fri, 6 Feb 2009 16:01:08 GMT Message-ID: <28943672.1233936068827.JavaMail.daisy@cocoon.zones.apache.org> Date: Fri, 6 Feb 2009 16:01:08 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: XPathExceptionSelector Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/969.html Document ID: 969 Branch: main Language: default Name: XPathExceptionSelector (unchanged) Document Type: Sitemap Component (unchanged) Updated on: 11/24/08 12:52:22 PM Updated by: Felix Knecht A new version has been created, state: publish Parts =3D=3D=3D=3D=3D Long description ---------------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1118 bytes (previous version: 913 bytes) Content diff: (7 equal lines skipped) =20

Example configuration :

=20 ---

<map:selector type=3D"error" src=3D"....XPathExceptionSelector"&g= t;
--- =C2=A0 <exception name=3D"denied" class=3D"my.comp.auth.Authenticati= onFailure"> +++

<map:components>
+++ =C2=A0 <map:selectors>
+++ =C2=A0=C2=A0=C2=A0 ...
+++ =C2=A0=C2=A0=C2=A0 <map:selector name=3D"error" +++ src=3D"org.apache.cocoon.selection.XPathExceptionSelector">
+++ =C2=A0 =C2=A0 =C2=A0 <exception name=3D"denied" class=3D"my.comp.aut= h.AuthenticationFailure">
--- =C2=A0=C2=A0=C2=A0 <xpath name=3D"PasswordWrong" test=3D"authCode=3D= 10"/>
--- =C2=A0=C2=A0=C2=A0 <xpath name=3D"PasswordExpired" test=3D"errorCode= =3D11"/>
--- =C2=A0=C2=A0=C2=A0 <xpath name=3D"AccessForbidden" test=3D"errorCode= &gt;11"/>
--- =C2=A0 </exception>
--- </map:selector>

+++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xpath name=3D"PasswordWr= ong" test=3D"authCode=3D10"/>
+++ =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 <xpath name=3D"PasswordExpired" tes= t=3D"errorCode=3D11"/>
+++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xpath name=3D"AccessForb= idden" test=3D"errorCode&gt;11"/>
+++ =C2=A0 =C2=A0 =C2=A0 </exception>
+++ =C2=A0=C2=A0=C2=A0 </map:selector>
+++ =C2=A0 </map:selectors>
+++ </map:componets>

=20

This example shows several features:

=20 (9 equal lines skipped)