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>
- * <map:selector type="error" src="....XPathExceptionSelector">
- * <exception name="denied" class="my.comp.auth.AuthenticationFailure">
- * <xpath name="PasswordWrong" test="authCode=10"/>
- * <xpath name="PasswordExpired" test="errorCode=11"/>
- * <xpath name="AccessForbidden" test="errorCode>11"/>
- * </exception>
- * </map:selector>
+ * <map:components>
+ * <map:selectors>
+ * ...
+ * <map:selector name="error" src="org.apache.cocoon.selection.XPathExceptionSelector">
+ * <exception name="denied" class="my.comp.auth.AuthenticationFailure">
+ * <xpath name="PasswordWrong" test="authCode=10"/>
+ * <xpath name="PasswordExpired" test="errorCode=11"/>
+ * <xpath name="AccessForbidden" test="errorCode>11"/>
+ * </exception>
+ * </map:selector>
+ * </map:selectory>
+ * </components>
* </pre>
* This example shows several features:
* <ul>