Hi all,

There appears to be a bug (or maybe something unfinished?) in
EffectPipe.startPrefixMapping().  Line 426 is commented out (copy pasted in below).  
This
causes EffectPipe.Output.startPrefixMapping() to send a null prefix and uri
down the pipe when called from EffectPipe.Output.copy() (which in my case
causes Saxon to throw an NPE).  Attached is a patch that fixes it (by passing in
input.prefix/uri instead). 

This fixes it for my use case, but I'm not entirely sure what was intended
(or why line 426 is commented out in the first place).

Thanks,

Peter

    public void startPrefixMapping(String prefix, String uri) throws
SAXException {
        input = new Element(prefix, uri);
        elements.addFirst(input);
        //this.prefix = prefix; this.uri = uri;
        event = EVENT_START_PREFIX_MAPPING; handler = handler.process();
    }

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail

Attachment: EffectPipe.patch
Description: Binary data

Reply via email to