Lines Matching defs:ctxt
17 ctxt = pctxt.context()
18 called = ctxt.function()
21 def bar(ctxt, x):
25 ctxt = doc.xpathNewContext()
26 res = ctxt.xpathEval("//*")
33 libxml2.registerXPathFunction(ctxt._o, "foo", None, foo)
34 libxml2.registerXPathFunction(ctxt._o, "bar", None, bar)
37 res = ctxt.xpathEval("foo(1)")
44 res = ctxt.xpathEval("bar(1)")
50 ctxt.xpathFreeContext()