Re: [xml] XPath functions ignoring their name

On Wed, May 16, 2001 at 02:17:41AM +0200, Thomas Broyer wrote:


As I explained in the xslt list, I need a way of retrieving the name of the
currently called XPath function since I have a single function answering
calls for multiple XPath functions (this is for the EXSLT - Functions

  Hum, right, I see what you mean, something like self() in OO languages.

It seems impossible: the parser context doesn't keep track of the current


Can I add a pointer to the current xmlXPathSetOp, or its index in the
comp->steps list, or directly to the function name and namespace URI (which
of the three should I prefer?), in the xmlXPathParserContext?

  If this is just needed at compilation time, I would prefer to have
it added at the end of xmlXPathParserContext.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]