cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <>
Subject Re: [c2] How to stop on generation errors ?
Date Tue, 27 Nov 2001 16:42:43 GMT
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:


Email if you need more info.



At 01:43 PM 11/27/01 +0000, you wrote:
>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
>Please check that your question has not already been answered in the
>FAQ before posting. <>
>To unsubscribe, e-mail: <>
>For additional commands, e-mail: <> 

Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message