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]>

Reply via email to