jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/implementations/Canonicalizer20010315Excl.java
equal
deleted
inserted
replaced
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)) { |