* @param e The NodeInfo representing the Element or other node to be tested against the Pattern
* @return true if the node matches the Pattern, false otherwise
*/
public boolean matches(NodeInfo e, XPathContext context) throws XPathException {
KeyDefinitionSet kds = keySet;
if (kds == null) {
// shouldn't happen
kds = context.getController().getExecutable().getKeyManager().getKeyDefinitionSet(keyName);
}
DocumentInfo doc = e.getDocumentRoot();