From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Oct 10 2000 - 17:18:32 EDT
On Mon, Oct 09, 2000 at 02:15:25PM +0000, Bjorn Reese wrote:
>
> I had a look at how to implement XPointer in libxml, and I see
> that Daniel has been doing something similar in the latest
> releases, so it may be a good idea to discuss how it is best
> implemented.
With C code :-) Seriously it's coming soon !
> XPointer uses and extends XPath expressions. It extends both
> the data types and functions. Other standards such as XQL (and
> XSLT?) also uses and extends XPath expressions, although in
> different directions than that of XPointer.
>
> I think that the current XPath implementation is good, but
> difficult to extend. Even if we do not want to implement XQL,
> it should still be possible to implement XQL on top of libxml.
>
> I can think of four feasable solutions for extending XPath
> expressions:
>
> 1) Patch xpath.c directly. This way xpath.c can become very
> difficult to maintain.
a bit is needed, it's minimal
> 2) Make the parsing and and stack functionality of xpath.c
> public (most of it is currently private macros).
only a bit was needed
> 3) Inherit from an XPath "class". Although this is not
> conveniently done in C, it is possible to a certain
> degree.
out of scope, not needed.
> 4) Provide extendibility hooks.
provided new api and new types.
FYI I expect to have a complete XPointer implementation around the
end of the week. I didn't ship the xpointer code in 2.2.4 but I will
in 2.2.5
check xpointer.[ch] from
http://dev.w3.org/cvsweb/XML/
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Tue Oct 10 2000 - 17:44:38 EDT