jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/Canonicalizer11.java
equal
deleted
inserted
replaced
380 //No xmlns def just get the already defined. |
380 //No xmlns def just get the already defined. |
381 n = ns.getMapping(XMLNS); |
381 n = ns.getMapping(XMLNS); |
382 } else if (!isVisible(xmlns)) { |
382 } else if (!isVisible(xmlns)) { |
383 //There is a definition but the xmlns is not selected by the xpath. |
383 //There is a definition but the xmlns is not selected by the xpath. |
384 //then xmlns="" |
384 //then xmlns="" |
385 n = ns.addMappingAndRender(XMLNS, "", nullNode); |
385 n = ns.addMappingAndRender( |
|
386 XMLNS, "", getNullNode(xmlns.getOwnerDocument())); |
386 } |
387 } |
387 //output the xmlns def if needed. |
388 //output the xmlns def if needed. |
388 if (n != null) { |
389 if (n != null) { |
389 result.add((Attr)n); |
390 result.add((Attr)n); |
390 } |
391 } |