Project

Profile

Help

Revision 6a76a5ba

Added by Michael Kay over 11 years ago

fix bug 3002638 ErrorListener on IdentityTransformer

View differences:

latest9.2/hej/net/sf/saxon/IdentityTransformer.java
27 27
                    result, pipe, getOutputProperties());
28 28
            NamespaceReducer reducer = new NamespaceReducer();
29 29
            reducer.setUnderlyingReceiver(receiver);
30
            ParseOptions options = new ParseOptions();
30
            ParseOptions options = pipe.getParseOptions();
31 31
            options.setContinueAfterValidationErrors(true);
32 32
            new Sender(pipe).send(source, reducer, options);
33 33
        } catch (XPathException err) {
latest9.2/hej/net/sf/saxon/event/Sender.java
407 407
                    XPathException de = new XPathException("Error reported by XML parser processing " +
408 408
                            source.getSystemId() + ": " + err.getMessage(), err);
409 409
                    try {
410
                        options.getErrorListener().fatalError(de);
410
                        listener.fatalError(de);
411 411
                        de.setHasBeenReported(true);
412 412
                    } catch (TransformerException e) {
413 413
                        //
......
433 433
                        (errs == 1 ? "" : "s"));
434 434
                if (dtdRecover) {
435 435
                    try {
436
                        options.getErrorListener().warning(xe);
436
                        listener.warning(xe);
437 437
                    } catch (TransformerException e) {
438 438
                        //
439 439
                    }

Also available in: Unified diff