[Andreas]
Hi Finn,
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... IIUC, all we have yet to do is provide an implementation for a javax.xml.transform.ErrorListener and use it to route the error messages to our common-logging (instead of the org.apache.xml.utils.DefaultErrorHandler routing them to stderr or a supplied PrintStream or PrintWriter).
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.
regards, finn