@Test public void namespaceButNoMap() { Element e = doc.createElementNS("https: e.setAttributeNS("https: e.setAttributeNS("https: assertEquals("/foo[1]/@foo", builder.apply(e.getAttributeNode("foo")).getXPath()); }
@Override public XPathContext apply(Node n) { if (n instanceof Attr) { return getXPathForAttribute((Attr) n); } else { return getXPathForNonAttribute(n); } }
RecursiveXPathBuilder implements Mapper<Node, XPathContext> { @Override public XPathContext apply(Node n) { if (n instanceof Attr) { return getXPathForAttribute((Attr) n); } else { return getXPathForNonAttribute(n); } } }
RecursiveXPathBuilder implements Mapper<Node, XPathContext> { @Override public XPathContext apply(Node n) { if (n instanceof Attr) { return getXPathForAttribute((Attr) n); } else { return getXPathForNonAttribute(n); } }  }
RecursiveXPathBuilder implements Mapper<Node, XPathContext> { @Override public XPathContext apply(Node n) { if (n instanceof Attr) { return getXPathForAttribute((Attr) n); } else { return getXPathForNonAttribute(n); } }  void setNamespaceContext(Map<String, String> prefix2uri); @Override XPathContext apply(Node n); }
RecursiveXPathBuilder implements Mapper<Node, XPathContext> { @Override public XPathContext apply(Node n) { if (n instanceof Attr) { return getXPathForAttribute((Attr) n); } else { return getXPathForNonAttribute(n); } }  void setNamespaceContext(Map<String, String> prefix2uri); @Override XPathContext apply(Node n);  }