| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- CVS $Id: sitemap.xmap,v 1.6 2004/02/16 23:50:09 joerg Exp $ --> |
| |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| |
| <map:components> |
| <map:selectors default="browser"> |
| <map:selector name="exception" src="org.apache.cocoon.selection.XPathExceptionSelector"> |
| <exception name="application" class="org.apache.cocoon.samples.errorhandling.ApplicationException"> |
| <xpath name="application1" test="errorCode=1"/> |
| <xpath name="application2" test="errorCode=2"/> |
| </exception> |
| <exception name="validation" class="org.apache.cocoon.samples.errorhandling.ValidationException"/> |
| <exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/> |
| <exception class="java.lang.Throwable" unroll="true"/> |
| </map:selector> |
| </map:selectors> |
| </map:components> |
| |
| <map:pipelines> |
| <map:pipeline> |
| <map:match pattern=""> |
| <map:redirect-to uri="welcome"/> |
| </map:match> |
| |
| <map:match pattern="welcome"> |
| <map:generate src="samples.xml"/> |
| <map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl"> |
| <map:parameter name="contextPath" value="{request:contextPath}"/> |
| </map:transform> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="main"> |
| <map:generate src="main.xml"/> |
| <map:transform src="context://samples/common/style/xsl/html/complex-page2html.xsl"> |
| <map:parameter name="contextPath" value="{request:contextPath}"/> |
| </map:transform> |
| <map:serialize/> |
| </map:match> |
| </map:pipeline> |
| |
| <map:pipeline> |
| <map:mount uri-prefix="exception" src="exception/"/> |
| |
| <map:handle-errors> |
| <map:select type="exception"> |
| <map:when test="not-found"> |
| <map:generate src="resourceNotFound.htm"/> |
| <map:serialize/> |
| </map:when> |
| </map:select> |
| </map:handle-errors> |
| </map:pipeline> |
| |
| <map:handle-errors> |
| <map:generate type="notifying"/> |
| <map:transform src="context://stylesheets/system/error2html.xslt"> |
| <map:parameter name="contextPath" value="{request:contextPath}"/> |
| </map:transform> |
| </map:handle-errors> |
| </map:pipelines> |
| |
| </map:sitemap> |