Hey all - 
We're trying to use the libxml2 python bindings to play some games with
'marking up' an xml document, based on xpointers coming out of various
checkers and annotators. We need string-range for cases like spell-check
or arbitrary annotation.

Is the string-range function just not implemented from the python
bindings? I'm getting 'unregistered function':

>>> ctx.xpointerEval('xpointer(string-range(/,"Geometric"))')
xmlXPathCompOpEval: function string-range not found
Unregistered function
xmlXPtrEval: evaluation failed to return a node set
xmlXPtrEval: object(s) left on the eval stack
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/libxml2.py", line 6922, in
xpointerEval    if ret is None:raise treeError('xmlXPtrEval() failed')
libxml2.treeError: xmlXPtrEval() failed
>>>

Ross
-- 
Ross Reedstrom, Ph.D.                                 [EMAIL PROTECTED]
Research Scientist                                  phone: 713-348-6166
The Connexions Project      http://cnx.org            fax: 713-348-3665
Rice University MS-375, Houston, TX 77005
GPG Key fingerprint = F023 82C8 9B0E 2CC6 0D8E  F888 D3AE 810E 88F0 BEDE
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to