Thanks David. I have been using the style tasks several times in the past
but I need something more powerful. The generation mechanism that I am using
generates not only HTML but also PDF documents. What I find strange is that
the exception stack trace is detailed in the generated page but that I
couldn't get it to be thrown by cocoon. Is there no way to do that ?

thanks
-Vincent

----- Original Message -----
From: "David Rosenstrauch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 4:42 PM
Subject: Re: [c2] How to stop on generation errors ?


> I'd suggest using Xalan directly for this instead of Cocoon then.
>
> Ant has a "style" action, which is used to call an XSLT transformer
(usually Xalan).
>
> The style action works properly with Ant and does what you want (i.e.,
terminating the build if an error occurs).
>
> I use this in my project to generate static XML at compile time.  I only
use Cocoon to generate dynamic pages in response to user requests.
>
> You can look in the Ant docs for details about the "style" action, but to
get you started, my build.xml uses it like this:
>
> <style
>          style="${style}.xsl"
>          in="${in}.xml"
>          out="${out}"
>  >
>
>
> Email if you need more info.
>
> HTH.
>
>
> DR
>
>
> At 01:43 PM 11/27/01 +0000, you wrote:
> >Hi,
> >
> >Probably a newbie question. I'm using cocoon2 to generate documentation
for
> >my project. I run the generation as part of my Ant build. At the moment,
if
> >there is an error in any xml file, the build does not stop. Errors are
> >reported in a log file and in the generated page.
> >
> >I'd like to know how to tell cocoon to exit upon error so that the Ant
build
> >see the error and exit itself.
> >
> >Thanks a lot
> >-Vincent
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> >To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to