[xml] Extending XPath?

Date view Thread view Subject view Author view

From: Bjorn Reese (breese@mail1.stofanet.dk)
Date: Mon Oct 09 2000 - 10:15:25 EDT


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.

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.

  2) Make the parsing and and stack functionality of xpath.c
     public (most of it is currently private macros).

  3) Inherit from an XPath "class". Although this is not
     conveniently done in C, it is possible to a certain
     degree.

  4) Provide extendibility hooks.

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 10:43:29 EDT