private static boolean isDefaultCapableElement(XPathElement context) {
    // http://www.w3.org/TR/xslt20/#unprefixed-qnames
    return (context instanceof XPathNodeTest && ((XPathNodeTest)context).getPrincipalType() == XPathNodeTest.PrincipalType.ELEMENT)
      || context instanceof XPath2TypeElement;
  }
private static boolean isDefaultCapableElement(XPathElement context)