jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/Canonicalizer20010315.java
changeset 22325 f22d936a0ff5
parent 18780 f47b920867e7
equal deleted inserted replaced
22324:54a74fc6e85c 22325:f22d936a0ff5
   325                 //No xmlns def just get the already defined.
   325                 //No xmlns def just get the already defined.
   326                 n = ns.getMapping(XMLNS);
   326                 n = ns.getMapping(XMLNS);
   327             } else if (!isVisible(xmlns)) {
   327             } else if (!isVisible(xmlns)) {
   328                 //There is a definition but the xmlns is not selected by the xpath.
   328                 //There is a definition but the xmlns is not selected by the xpath.
   329                 //then xmlns=""
   329                 //then xmlns=""
   330                 n = ns.addMappingAndRender(XMLNS, "", nullNode);
   330                 n = ns.addMappingAndRender(
       
   331                         XMLNS, "", getNullNode(xmlns.getOwnerDocument()));
   331             }
   332             }
   332             //output the xmlns def if needed.
   333             //output the xmlns def if needed.
   333             if (n != null) {
   334             if (n != null) {
   334                 result.add((Attr)n);
   335                 result.add((Attr)n);
   335             }
   336             }