Lines Matching refs:ancestor
2931 * get the nearest common ancestor.
3223 * get the nearest common ancestor.
7896 * Traversal function for the "ancestor" direction
7897 * the ancestor axis contains the ancestors of the context node; the ancestors
8021 * Traversal function for the "ancestor-or-self" direction
8022 * he ancestor-or-self axis contains the context node and ancestors of
8123 * @ancestor: the ancestor node
8126 * Check that @ancestor is a @node's ancestor
8128 * returns 1 if @ancestor is a @node's ancestor, 0 otherwise.
8131 xmlXPathIsAncestor(xmlNodePtr ancestor, xmlNodePtr node) {
8132 if ((ancestor == NULL) || (node == NULL)) return(0);
8134 if (ancestor->doc != node->doc) return(0);
8135 /* avoid searching if ancestor or node is the root node */
8136 if (ancestor == (xmlNodePtr) node->doc) return(1);
8137 if (node == (xmlNodePtr) ancestor->doc) return(0);
8139 if (node->parent == ancestor)
8195 * state kept in the parser context: ctxt->ancestor.
8210 ctxt->ancestor = cur->parent;
8220 if (cur != ctxt->ancestor)
8222 ctxt->ancestor = cur->parent;
9389 * xml:lang attribute on the nearest ancestor of the context node that
11073 * [6] AxisName ::= 'ancestor'
11074 * | 'ancestor-or-self'
11094 if (xmlStrEqual(name, BAD_CAST "ancestor"))
11096 if (xmlStrEqual(name, BAD_CAST "ancestor-or-self"))
11978 * not in the ancestor-or-self axis of the other, then we could safely