jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/Canonicalizer11.java
changeset 22325 f22d936a0ff5
parent 18780 f47b920867e7
equal deleted inserted replaced
22324:54a74fc6e85c 22325:f22d936a0ff5
   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             }