Re: BUG #4294: XML support: name() xpath function not working - Mailing list pgsql-bugs

From Simon Riggs
Subject Re: BUG #4294: XML support: name() xpath function not working
Date
Msg-id 1215709056.4051.1381.camel@ebony.2ndQuadrant
Whole thread Raw
In response to BUG #4294: XML support: name() xpath function not working  ("Enrico Sirola" <enrico.sirola@gmail.com>)
List pgsql-bugs
On Thu, 2008-07-10 at 08:52 +0000, Enrico Sirola wrote:

> create table test (test xml);
> insert into test values ('<a
> xmlns="http://myns.com/ns"><b>text1</b><c>text2</c></a>');
> -- good
> select xpath('/my:a/*[last()]', test, ARRAY[ARRAY['my',
> 'http://myns.com/ns']]) from test;
> -- bad
> select xpath('name(/my:a/*[last()])', test, ARRAY[ARRAY['my',
> 'http://myns.com/ns']]) from test;

What error messages are you getting?

Why do you think this should work? Best post a test case using another
tool, or a URL to an example.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4291: Inheritance fails on column suppression
Next
From: Tom Lane
Date:
Subject: Re: BUG #4294: XML support: name() xpath function not working