> -----Original Message----- > From: Finn Bock [mailto:[EMAIL PROTECTED]
> > > > Not sure if this is what you're looking for, but the > > javax.xml.transform.Transformer class does offer a setErrorListener() method > > to use a custom Error Handler... <snip /> [Finn:] > I couldn't get that working. As I see the it, the SAXException from the > xml parsing is not passed through to the ErrorListener. > > The source code from xalan confirms that. No ErrorHandler is passed to > the XMLReader that is create in TransformerIdentityImpl.java. > Hmm.. Indeed a problem. I'm thinking: what happens when you perform an identity transform via XSLT (i.e. considering FO input to be a special case of XML input --where the XSL defaults to a supplied stylesheet that performs an identity transform on the FO source)? So I just tried that, and there is a noticeable difference in the error reporting: the '[Fatal Error]' message disappears. Greetz, Andreas