Project

Profile

Help

Revision e8902b05

Added by Michael Kay over 12 years ago

2822068 Missing namespaces after identity transform from DOM

View differences:

latest9.1/bj/net/sf/saxon/dom/DOMSender.java
280 280
            String attname = att.getName();
281 281
            if (attname.equals("xmlns")) {
282 282
                //System.err.println("Default namespace: " + att.getValue());
283
                if (nsDeclarations.get("")==null) {
284
                    String uri = att.getValue();
283
                String uri = att.getValue();
284
                if (nsDeclarations.get("")==null || !nsDeclarations.get("").equals(uri)) {
285 285
                    nsSupport.declarePrefix("", uri);
286 286
                    nsDeclarations.put("", uri);
287 287
                }

Also available in: Unified diff