Re: xpath processing brain dead

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: James Pye <lists(at)jwp(dot)name>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>
Subject: Re: xpath processing brain dead
Date: 2009-03-02 08:26:25
Message-ID: 49AB9831.3020809@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan wrote:
> can you point me at any call in libxml2 which will evaluate an xpath
> expression in the context of a nodeset instead of a document? Quite
> apart from anything else, xpath requires there to be a (single) context
> node (see http://www.w3.org/TR/xpath20/#context ). For a doc, we set
> that node to the document node, but what would it be for a node-set or a
> fragment? If we can't get over that hurdle we're screwed in pursuing
> your line of thought.

Which may hint at the fact that running xpath on content fragments is
ill-defined to begin with?!?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-03-02 08:37:03 Re: a proposal for an extendable deparser
Previous Message Heikki Linnakangas 2009-03-02 07:59:44 Re: Immediate shutdown and system(3)