Lines Matching refs:ctxt

45  * @ctxt:  an XPath parser context
54 exsltDynEvaluateFunction(xmlXPathParserContextPtr ctxt, int nargs) {
58 if (ctxt == NULL)
61 xsltPrintErrorContext(xsltXPathGetTransformContext(ctxt), NULL, NULL);
64 ctxt->error = XPATH_INVALID_ARITY;
67 str = xmlXPathPopString(ctxt);
71 valuePush(ctxt,xmlXPathNewNodeSet(NULL));
74 ret = xmlXPathEval(str,ctxt->context);
76 valuePush(ctxt,ret);
80 valuePush(ctxt,xmlXPathNewNodeSet(NULL));
88 * @ctxt: an XPath parser context
97 exsltDynMapFunction(xmlXPathParserContextPtr ctxt, int nargs)
111 xmlXPathSetArityError(ctxt);
114 str = xmlXPathPopString(ctxt);
115 if (xmlXPathCheckError(ctxt)) {
116 xmlXPathSetTypeError(ctxt);
120 nodeset = xmlXPathPopNodeSet(ctxt);
121 if (xmlXPathCheckError(ctxt)) {
122 xmlXPathSetTypeError(ctxt);
130 valuePush(ctxt, xmlXPathNewNodeSet(NULL));
141 oldDoc = ctxt->context->doc;
142 oldNode = ctxt->context->node;
143 oldContextSize = ctxt->context->contextSize;
144 oldProximityPosition = ctxt->context->proximityPosition;
150 container = xsltCreateRVT(xsltXPathGetTransformContext(ctxt));
152 xsltRegisterTmpRVT(xsltXPathGetTransformContext(ctxt), container);
156 ctxt->context->contextSize = nodeset->nodeNr;
157 ctxt->context->proximityPosition = 0;
161 ctxt->context->proximityPosition++;
162 ctxt->context->node = nodeset->nodeTab[i];
163 ctxt->context->doc = nodeset->nodeTab[i]->doc;
165 subResult = xmlXPathCompiledEval(comp, ctxt->context);
240 ctxt->context->doc = oldDoc;
241 ctxt->context->node = oldNode;
242 ctxt->context->contextSize = oldContextSize;
243 ctxt->context->proximityPosition = oldProximityPosition;
254 valuePush(ctxt, ret);