Saxon by default writes its error messages to the Java "System.err" output
stream. I think that with most operating systems you can redirect this to a
file "errors.txt" by writing the command line as:
java com.icl.saxon.StyleSheet file.xml file.xsl 2> errors.txt
(However, I do recommend that when you're building Saxon into a larger
application, as you seem to be doing, you get to know the Java API: it's
much more flexible than just using the command line interface. You don't
need to know the Saxon source code, only the JAXP 1.1 interface definitions.
But of course, you do need to learn some Java).
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@... Behalf Of Jon
> Sent: 08 August 2001 21:12
> To: saxon-help@...
> Subject: [saxon] error catching with instant saxon.
> I'm wondering if there is a way to output error messages to a
> file when
> running saxon.
> I've written a vbscript to transform an entire directory of
> xml documents,
> but i haven't been able to catch the errors (this is part of a data
> conversion process).
> the saxon documentation states that messages are directed to the JAXP
> ErrorListener, but that seems to be something i could control
> only if i
> get under the hood of the source code--something that i'm
> trying to avoid,
> as i am not a java programmer.
> thanks for any suggestions.
> Jon Jablonski
> The Information School
> University of Washington.
> saxon-help mailing list