Lines Matching defs:ancestor
2918 * get the nearest common ancestor.
3209 * get the nearest common ancestor.
7861 * Traversal function for the "ancestor" direction
7862 * the ancestor axis contains the ancestors of the context node; the ancestors
7986 * Traversal function for the "ancestor-or-self" direction
7987 * he ancestor-or-self axis contains the context node and ancestors of
8088 * @ancestor: the ancestor node
8091 * Check that @ancestor is a @node's ancestor
8093 * returns 1 if @ancestor is a @node's ancestor, 0 otherwise.
8096 xmlXPathIsAncestor(xmlNodePtr ancestor, xmlNodePtr node) {
8097 if ((ancestor == NULL) || (node == NULL)) return(0);
8099 if (ancestor->doc != node->doc) return(0);
8100 /* avoid searching if ancestor or node is the root node */
8101 if (ancestor == (xmlNodePtr) node->doc) return(1);
8102 if (node == (xmlNodePtr) ancestor->doc) return(0);
8104 if (node->parent == ancestor)
8160 * state kept in the parser context: ctxt->ancestor.
8175 ctxt->ancestor = cur->parent;
8185 if (cur != ctxt->ancestor)
8187 ctxt->ancestor = cur->parent;
9347 * xml:lang attribute on the nearest ancestor of the context node that
11026 * [6] AxisName ::= 'ancestor'
11027 * | 'ancestor-or-self'
11047 if (xmlStrEqual(name, BAD_CAST "ancestor"))
11049 if (xmlStrEqual(name, BAD_CAST "ancestor-or-self"))
11927 * not in the ancestor-or-self axis of the other, then we could safely