contextual info must be recomputed
Daniel
+Sun Feb 18 17:13:00 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+ * libxslt/pattern.c: when precompiled pattern is ALL, predicate
+ contextual info must be recomputed
+
Sun Feb 18 16:39:17 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* libxslt/xslt.h libxslt/transform.c: defined and exported xsltMaxDepth
ctxt->xpathCtxt->contextSize = len;
ctxt->xpathCtxt->proximityPosition = pos;
}
+ } else if ((select != NULL) && (select->op == XSLT_OP_ALL)) {
+ xmlNodePtr siblings = node->parent->children;
+
+ while (siblings != NULL) {
+ if (siblings->type == XML_ELEMENT_NODE) {
+ len++;
+ if (siblings == node) {
+ pos = len;
+ }
+ }
+ siblings = siblings->next;
+ }
+ if (pos != 0) {
+ ctxt->xpathCtxt->contextSize = len;
+ ctxt->xpathCtxt->proximityPosition = pos;
+ }
}
oldNode = ctxt->node;
ctxt->node = node;