Hi,

  I have a created a custom ProblemListener and ErrorHandler that I give
xalan to so that I can capture problems and error and report then through my
application's error handling mechanisms.  However I've noticed that some
problems do not always make it to the ProblemListener or ErrorHandler and
can only be reported by calling getLastError() on the transformer object
after an error has been detected.

  The result of this is that for most errors I have to messages one from
ProblemListener or ErrorHandler and then from getLastError().  There is no
harm in reporting the same error twice, but it would be nice to avoid it if
I can.

  Is there any way to tell by the return code of the transformer that the
error encountered was reported through the ProblemListener and thus no need
to call getLastError?

  If I remember right the error that was not reported happened in the actual
processing not in the parsing, compiling of the stylesheet or the parsing of
the input source.  Sorry I do not remember the exact nature of the error it
happened some weeks ago.

Thanks,

-Corey

Reply via email to