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