Project

Profile

Help

Revision b6a2ff21

Added by Michael Kay almost 12 years ago

Fix bug 2984604 DOMSource wrapping element with redefined namespace

View differences:

latest9.2/hej/net/sf/saxon/dom/DOMSender.java
302 302
            if (attname.equals("xmlns")) {
303 303
                //System.err.println("Default namespace: " + att.getValue());
304 304
                String uri = att.getValue();
305
                if (nsDeclarations.get("")==null || !nsDeclarations.get("").equals(uri)) {
305
                if (nsDeclarations.get("")==null || (!cumulative && !nsDeclarations.get("").equals(uri))) {
306 306
                    nsSupport.declarePrefix("", uri);
307 307
                    nsDeclarations.put("", uri);
308 308
                }

Also available in: Unified diff