Project

Profile

Help

xslt processor errors

Added by Anonymous over 17 years ago

Legacy ID: #4181636 Legacy Poster: Stefan (snenkov)

Hi All, I have been following PullExamples.java for doing xslt transformation with saxon8.9j There are errors in the xslt transformation/compilation. Saxon reports the errors to system.err and then throws exception that has a message only saying that 32 errors were found. How can I get notification for each error or list of each error? How can I get the XSLT 2.0 error code for each error. Thanks Stefan


Replies (3)

Please register to reply

RE: xslt processor errors - Added by Anonymous over 17 years ago

Legacy ID: #4181761 Legacy Poster: Michael Kay (mhkay)

You can receive notification of errors that occur during the XSLT compilation by supplying an ErrorListener to transformerFactory.setErrorListener().

RE: xslt processor errors - Added by Anonymous over 17 years ago

Legacy ID: #4181866 Legacy Poster: Stefan (snenkov)

Thank you Michael! Which is the default class in saxon that handles that if no error handler is supplied?

RE: xslt processor errors - Added by Anonymous over 17 years ago

Legacy ID: #4181969 Legacy Poster: Michael Kay (mhkay)

In Saxon-B it's net.sf.saxon.StandardErrorListener. Saxon-SA has subclasses of this for XSLT and XQuery respectively.

    (1-3/3)

    Please register to reply