jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/Canonicalizer20010315Excl.java
changeset 22325 f22d936a0ff5
parent 18780 f47b920867e7
equal deleted inserted replaced
22324:54a74fc6e85c 22325:f22d936a0ff5
   290             // The element is visible, handle the xmlns definition
   290             // The element is visible, handle the xmlns definition
   291             Attr xmlns = element.getAttributeNodeNS(XMLNS_URI, XMLNS);
   291             Attr xmlns = element.getAttributeNodeNS(XMLNS_URI, XMLNS);
   292             if (xmlns != null && !isVisible(xmlns)) {
   292             if (xmlns != null && !isVisible(xmlns)) {
   293                 // There is a definition but the xmlns is not selected by the
   293                 // There is a definition but the xmlns is not selected by the
   294                 // xpath. then xmlns=""
   294                 // xpath. then xmlns=""
   295                 ns.addMapping(XMLNS, "", nullNode);
   295                 ns.addMapping(XMLNS, "", getNullNode(xmlns.getOwnerDocument()));
   296             }
   296             }
   297 
   297 
   298             String prefix = null;
   298             String prefix = null;
   299             if (element.getNamespaceURI() != null
   299             if (element.getNamespaceURI() != null
   300                 && !(element.getPrefix() == null || element.getPrefix().length() == 0)) {
   300                 && !(element.getPrefix() == null || element.getPrefix().length() == 0)) {