253254255256257258259260261
// Methods related to the namespace context // public NamespaceContext getNamespaceContext() { if (namespaceContext == null) { namespaceContext = new NamespaceContextImpl(Collections.singletonMap(wrapperElementName.getPrefix(), wrapperElementName.getNamespaceURI())); } return namespaceContext; }
1168116911701171117211731174
Map m = getAllNamespaces(getNode()); if (getNode() != lastNode) { // Handle situation involving substituted node. m.putAll(getAllNamespaces(lastNode)); } return new NamespaceContextImpl(m); }