Re: [xml] new xpointer() data
- From: Daniel Veillard <veillard redhat com>
- To: Piotr BaÅski <bansp o2 pl>
- Cc: xml gnome org
- Subject: Re: [xml] new xpointer() data
- Date: Fri, 4 Jun 2010 03:23:32 +0200
On Tue, Jun 01, 2010 at 11:37:43AM +0200, Piotr BaÅski wrote:
Hi all,
I realize that XPointer's xpointer() scheme is far from the primary
focus of this community (although libxml2 is the only free-standing tool
that has at least a bit of support for this scheme, so I gladly join
Argon in thanking Daniel!). And because it's a side issue, I'm simply
trying hard to reach the two or three of you who may have a shade of
interest in some new data that I think may be relevant for debugging the
current implementation.
I have discovered some possible edge-of-the-loop problems with the
string-range() function -- it looks as if, possibly, at some point in
the calculation, the engine forgets that the empty string must match
before the first character and after the last character of the target
element's text:
https://bugzilla.gnome.org/show_bug.cgi?id=620190
Another thing is that string-range() doesn't use the string value of the
target element -- it notices the presence of both element nodes (while
it should only notice their content), and non-element nodes (such as
comments, which should be completely ignored but instead are apparently
counted as a single character):
https://bugzilla.gnome.org/show_bug.cgi?id=620195
I'm not a C programmer, so this is close to the limit of what I can do.
I hope someone may be interested in looking at the code and seeing if at
least the first issue can be resolved.
Okay, thanks for reporting the bugs Piotr, I'm not sure if or when I
may have time for looking at XPointer code again, but if the issues are
well explained in bugzilla with examples making it easy to reproduce
then there is a chance it will get fixed :-)
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]