Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 30092 invoked by uid 500); 19 Mar 2002 17:24:56 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Delivered-To: moderator for cocoon-users@xml.apache.org Received: (qmail 29165 invoked from network); 19 Mar 2002 12:04:36 -0000 Message-ID: <3C9726F6.2070407@bangor.ac.uk> Date: Tue, 19 Mar 2002 11:54:30 +0000 From: Simeon Walker User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020314 X-Accept-Language: en-gb, en, cy MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: map:handle-errors and sub sitemaps Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I am having trouble handling ResourceNotFound errors in my sub-sitemaps. My main sitemap just deals with aggregation, stylesheet selection and transformation to html. The sub-sitemaps define the production xml. If I request a page that does not exist the top level sitemap won't handle the error (I think) since there are matches for ** and **/ which request content from sub-sitemaps. If the requested file does not exist I can see the exception in the logs but no error handler is called. I simply get my page/menus etc with blank content. I have tried serializing xml from the sub-sitemap error handler so that the root sitemap could transform this and produce a readable message. But, I am correct in thinking this is not allowed? Perhaps I could use the resource-exists action in the sub-sitemaps? I can't find an example of this anywhere. I can get it to work in the case where the file exists but what happens when it doesn't? In this example, how can I send something else back when the resource does not exist? Regards, Sim -- Simeon Walker, email: simeon@sbs.bangor.ac.uk School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor, fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: