public String toShortString() { switch (nodeKind) { case Type.ELEMENT: return getNamespaceURI().isEmpty() ? namePool.getLocalName(getFingerprint()) : toString(); case Type.ATTRIBUTE: return "@" + (getNamespaceURI().isEmpty() ? namePool.getLocalName(getFingerprint()) : toString()); default: return toString(); } }
if (nodeKind == Type.ATTRIBUTE && getNamespaceURI().equals("")) {
if (nodeKind == Type.ATTRIBUTE && getNamespaceURI().equals("")) {
stepper = new FollowingFingerprintedElementStepper<>(start, nt.getFingerprint()); } else { stepper = new FollowingElementStepper<>(start, nt.getNamespaceURI(), nt.getLocalPart());
stepper = new FollowingFingerprintedElementStepper<>(start, nt.getFingerprint()); } else { stepper = new FollowingElementStepper<>(start, nt.getNamespaceURI(), nt.getLocalPart());
if (test instanceof NameTest && axis == AxisInfo.NAMESPACE && !((NameTest) test).getNamespaceURI().isEmpty()) { if (warnings) { visitor.issueWarning("The names of namespace nodes are never prefixed, so this axis step will never select anything",
if (test instanceof NameTest && axis == AxisInfo.NAMESPACE && !((NameTest) test).getNamespaceURI().isEmpty()) { if (warnings) { visitor.issueWarning("The names of namespace nodes are never prefixed, so this axis step will never select anything",