Re: error handling grief

Michael Wechner <[email protected]>
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
Gregor J. Rothfuss wrote:

>im currently trying to add error handling to one
>of our publications, using this fragment:
>
><map:handle-errors>
>  <map:aggregate element="wyona" label="gregor">
>    <map:part element="cmsbody" src="docs/publication/live/wrapper.html"/>
>    <map:part src="docs/publication/live/error.html" element="wrapper"/>
>    <map:part src="docs/publication/live/small-preview.xml"/>
>    <map:part src="docs/publication/live/sitetree.xml"/>
>    <map:part src="cocoon:/today"/>
>    </map:aggregate>
>  <map:transform src="stylesheets/publication/Page/Live/wrapper.xsl">
>    <map:parameter name="id" value="/error.html"/>
>  </map:transform>
>  <map:transform src="stylesheets/publication/Page/Live/images.xsl"
>label="content"/>
>  <map:serialize type="html"/>
></map:handle-errors>
>
>instead of doing what it should it complains that
>
>java.io.FileNotFoundException:
>/home/gregor/build/jakarta-tomcat-4.0.6/docs/cms/access-control/identify.xsp
>(No such file or directory)
>
>any clues?
>

Well, I think you can't have any "generator" within the handle-errors  
tag, because Cocoon already
generates an XML by default.

But you could use a transfomer to create an XInclude which is
calling another pipeline or resource to generate some XML.

HTH

Michael

>
>-gregor
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.