Lines Matching refs:node2
2835 * @node2: the second node
2843 xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) {
2849 if ((node1 == NULL) || (node2 == NULL))
2854 if (node1 == node2) /* trivial case */
2861 if (node2->type == XML_ATTRIBUTE_NODE) {
2863 attrNode2 = node2;
2864 node2 = node2->parent;
2866 if (node1 == node2) {
2885 (node2->type == XML_NAMESPACE_DECL))
2887 if (node1 == node2->prev)
2889 if (node1 == node2->next)
2896 (node2->type == XML_ELEMENT_NODE) &&
2898 (0 > (long) node2->content) &&
2899 (node1->doc == node2->doc)) {
2903 l2 = -((long) node2->content);
2913 for (depth2 = 0, cur = node2;cur->parent != NULL;cur = cur->parent) {
2920 if (cur == node2)
2939 node2 = node2->parent;
2941 while (node1->parent != node2->parent) {
2943 node2 = node2->parent;
2945 if ((node1 == NULL) || (node2 == NULL))
2951 if (node1 == node2->prev)
2953 if (node1 == node2->next)
2959 (node2->type == XML_ELEMENT_NODE) &&
2961 (0 > (long) node2->content) &&
2962 (node1->doc == node2->doc)) {
2966 l2 = -((long) node2->content);
2974 if (cur == node2)
2983 * @node2: the second node
2992 xmlXPathCmpNodesExt(xmlNodePtr node1, xmlNodePtr node2) {
2999 if ((node1 == NULL) || (node2 == NULL))
3002 if (node1 == node2)
3010 if (node2->type == XML_ELEMENT_NODE) {
3012 (0 > (long) node2->content) &&
3013 (node1->doc == node2->doc))
3016 l2 = -((long) node2->content);
3079 switch (node2->type) {
3084 miscNode2 = node2;
3085 node2 = node2->parent;
3092 miscNode2 = node2;
3093 if (node2->prev != NULL) {
3095 node2 = node2->prev;
3096 if (node2->type == XML_ELEMENT_NODE) {
3100 if (node2->prev == NULL) {
3102 node2 = node2->parent;
3108 node2 = node2->parent;
3110 if ((node2 == NULL) || (node2->type != XML_ELEMENT_NODE) ||
3113 node2 = miscNode2;
3125 if (node1 == node2) {
3155 * <node2>
3157 * </node2>
3164 if (cur == node2)
3170 cur = node2->parent;
3183 (node2->type == XML_ELEMENT_NODE) &&
3185 (0 > (long) node2->content) &&
3186 (node1->doc == node2->doc)) {
3189 l2 = -((long) node2->content);
3198 if (node1 == node2->prev)
3200 if (node1 == node2->next)
3205 for (depth2 = 0, cur = node2;cur->parent != NULL;cur = cur->parent) {
3212 if (cur == node2)
3231 node2 = node2->parent;
3233 while (node1->parent != node2->parent) {
3235 node2 = node2->parent;
3237 if ((node1 == NULL) || (node2 == NULL))
3243 if (node1 == node2->prev)
3245 if (node1 == node2->next)
3251 (node2->type == XML_ELEMENT_NODE) &&
3253 (0 > (long) node2->content) &&
3254 (node1->doc == node2->doc)) {
3257 l2 = -((long) node2->content);
3265 if (cur == node2)