Re: [xml] XPath functions ignoring their name



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

Hi,

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
implementation).

  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
xmlXPathStepOp

  Right,

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

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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