ErrorListener registered with the JAXP TransformerFactory is ignored
An ErrorListener registered with the JAXP TransformerFactory (or the Saxon Configuration) is used only for reporting errors in parsing a source document, and not for reporting static errors in stylesheets or queries.
#1 Updated by Michael Kay over 5 years ago
- Status changed from New to Resolved
A unit test jaxptest/TransformMessageTest/testErrorNotificationSchemaAware has been created. (The problem was reported as being specific to schema-aware stylesheets but is actually more general).
A patch is being applied on the 9.6 and 9.7 branches.
#2 Updated by Michael Kay over 5 years ago
- Status changed from Resolved to In Progress
Reopened. The user reports:
After I have integrated the changes from SVN repository on our side, revision 1070, I have obtained the next NPE:
at net.sf.saxon.Configuration.setErrorListener(Configuration.java:902) at net.sf.saxon.jaxp.SaxonTransformerFactory.setErrorListener(SaxonTransformerFactory.java:337)
It seems that the 'defaultStaticQueryContext' object could be null.
Please register to edit this issue