Re: [xml] string-range in xpointers from python?
- From: "Ross J. Reedstrom" <reedstrm rice edu>
- To: Daniel Veillard <veillard redhat com>
- Cc: xml gnome org
- Subject: Re: [xml] string-range in xpointers from python?
- Date: Fri, 18 Aug 2006 10:44:30 -0500
O.k, so this is better, some:
print ctx.xpointerEval('xpointer(/cnx:document/cnx:content/cnx:para[1])')[0].content
Geometric representation of signals can provide a compact
characterization of signals and can simplify analysis of their
performance as modulation signals.
ctx.xpointerEval('xpointer(string-range(/cnx:document/cnx:content/cnx:para[1],"Geometric"))')
Unable to convert XPath object type 7
I see this same error from a list posting a year ago, May. I'm using
libxml2 2.6.26. Is there more complete support in CVS? Should I be
getting my devel setup functional, and see about providing a patch or
two?
Ross
--
Ross Reedstrom, Ph.D. reedstrm rice edu
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
On Fri, Aug 18, 2006 at 10:09:26AM -0500, Ross J. Reedstrom wrote:
On Fri, Aug 18, 2006 at 01:53:42AM -0400, Daniel Veillard wrote:
are you sure ctx is an XPointer context and not an XPath context ?
Actually, no, it's not. I just realized we're using an XPathContext
derived from the document itself, rather than an XPointerContext from
the root node. Sigh. Seems working examples of xpointer usage are few
and far between. I'll take a look at that, and see what I can make work.
I'll probably be back with more questions.
Ross
--
Ross Reedstrom, Ph.D. reedstrm rice edu
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/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]