You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fe...@apache.org on 2008/11/24 13:46:38 UTC

svn commit: r720182 - /cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java

Author: felixk
Date: Mon Nov 24 04:46:38 2008
New Revision: 720182

URL: http://svn.apache.org/viewvc?rev=720182&view=rev
Log:
Fix documentation. Attribute is 'name' instead of 'type', add part where the configuration has to be put in the sitemap.xmap

Modified:
    cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java

Modified: cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java?rev=720182&r1=720181&r2=720182&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java (original)
+++ cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/XPathExceptionSelector.java Mon Nov 24 04:46:38 2008
@@ -37,13 +37,18 @@
  *
  * <p>Example configuration :
  * <pre>
- *   &lt;map:selector type="error" src="....XPathExceptionSelector">
- *     &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure">
- *       &lt;xpath name="PasswordWrong" test="authCode=10"/>
- *       &lt;xpath name="PasswordExpired" test="errorCode=11"/>
- *       &lt;xpath name="AccessForbidden" test="errorCode&gt;11"/>
- *     &lt;/exception>
- *   &lt;/map:selector>
+ *   &lt;map:components>
+ *     &lt;map:selectors>
+ *        ...
+ *       &lt;map:selector name="error" src="org.apache.cocoon.selection.XPathExceptionSelector">
+ *         &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure">
+ *           &lt;xpath name="PasswordWrong" test="authCode=10"/>
+ *           &lt;xpath name="PasswordExpired" test="errorCode=11"/>
+ *           &lt;xpath name="AccessForbidden" test="errorCode&gt;11"/>
+ *         &lt;/exception>
+ *       &lt;/map:selector>
+ *     &lt;/map:selectory>
+ *   &lt;/components>
  * </pre>
  * This example shows several features:
  * <ul>