cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Basic error handling
Date Fri, 06 Jul 2007 10:32:07 GMT
I am trying to do some very basic error handling in Cocoon 2.1.8
I have defined the following in the sitemap:
  <map:selectors default="browser">
   <map:selector name="exception"
<!-- also tried XPathExceptionSelector -->
   <exception name="not-found"

then, right at the end of the sitemap, after *all* of the 
<map:pipeline> sections I have:
    <map:select type="exception">
      <map:when test="not-found">
        <map:generate type="file" src="docs/missing.xml"/>
     <map:call resource="simple-page2html"/>
However, even this simple check does not work, and I get the usual
"Resource not found" display on my page.
I'd appreciate some help here (yes, I have read the "Error Handling"
section on Cocoon website, but it seems to plunge right into the deep
end and loses me almost straight away - the above snippet is adapted 
from the samples).

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message