Home | History | Annotate | Download | only in libxml2

Lines Matching refs:ancestor

2975      * get the nearest common ancestor.
3267 * get the nearest common ancestor.
7943 * Traversal function for the "ancestor" direction
7944 * the ancestor axis contains the ancestors of the context node; the ancestors
8068 * Traversal function for the "ancestor-or-self" direction
8069 * he ancestor-or-self axis contains the context node and ancestors of
8178 * @ancestor: the ancestor node
8181 * Check that @ancestor is a @node's ancestor
8183 * returns 1 if @ancestor is a @node's ancestor, 0 otherwise.
8186 xmlXPathIsAncestor(xmlNodePtr ancestor, xmlNodePtr node) {
8187 if ((ancestor == NULL) || (node == NULL)) return(0);
8189 if (ancestor->doc != node->doc) return(0);
8190 /* avoid searching if ancestor or node is the root node */
8191 if (ancestor == (xmlNodePtr) node->doc) return(1);
8192 if (node == (xmlNodePtr) ancestor->doc) return(0);
8194 if (node->parent == ancestor)
8255 * state kept in the parser context: ctxt->ancestor.
8270 ctxt->ancestor = cur->parent;
8280 if (cur != ctxt->ancestor)
8282 ctxt->ancestor = cur->parent;
9451 * xml:lang attribute on the nearest ancestor of the context node that
11141 * [6] AxisName ::= 'ancestor'
11142 * | 'ancestor-or-self'
11162 if (xmlStrEqual(name, BAD_CAST "ancestor"))
11164 if (xmlStrEqual(name, BAD_CAST "ancestor-or-self"))
12061 * not in the ancestor-or-self axis of the other, then we could safely