Re: Handling XML parse errors when using identity transform.

2004-10-23 Thread Glen Mazza
--- Finn Bock [EMAIL PROTECTED] wrote: 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

Handling XML parse errors when using identity transform.

2004-10-21 Thread Finn Bock
Hi Team, I'm no expert on java's xml transformer APIs so I need a little help. It appears to me that when using the identity Transformer from xalan we no longer get notifications of XML parse errors. Using an obviously corrupt input fo: ?xml version=1.0 encoding=UTF-8? xfo:root

Re: Handling XML parse errors when using identity transform.

2004-10-21 Thread Glen Mazza
I'm not sure of the problem here, your input fo is not an xsl fo, because the xfo to a namespace wasn't bound. Hence the Xerces error message--what is it that you're expecting instead? Glen --- Finn Bock [EMAIL PROTECTED] wrote: Hi Team, I'm no expert on java's xml transformer APIs so I

Re: Handling XML parse errors when using identity transform.

2004-10-21 Thread Finn Bock
[Glen] I'm not sure of the problem here, your input fo is not an xsl fo, because the xfo to a namespace wasn't bound. Hence the Xerces error message--what is it that you're expecting instead? I would expect that the ErrorHandler methods in FOTreeBuilder (warning(), error() and fatalError()) was

RE: Handling XML parse errors when using identity transform.

2004-10-21 Thread Andreas L. Delmelle
-Original Message- From: Finn Bock [mailto:[EMAIL PROTECTED] 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

Re: Handling XML parse errors when using identity transform.

2004-10-21 Thread Finn Bock
[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

RE: Handling XML parse errors when using identity transform.

2004-10-21 Thread Andreas L. Delmelle
-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

RE: Handling XML parse errors when using identity transform.

2004-10-21 Thread Andreas L. Delmelle
-Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] [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

Re: Handling XML parse errors when using identity transform.

2004-10-21 Thread J.Pietschmann
Finn Bock wrote: and there is no way AFAICT to set a different error handler on the XMLReader that the xalans transformer creates and uses to parse the input file. Well, if you really need control over the parser, you have to create one by yourself rather than relying on StreamSource to do it