Re: xpath_array with namespaces support

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org, nikolay(at)samokhvalov(dot)com
Subject: Re: xpath_array with namespaces support
Date: 2007-03-22 20:58:36
Message-ID: 200703222158.36891.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Nikolay Samokhvalov wrote:
> Also, maybe someone can suggest better approach for passing namespace
> bindings (more convenient than ARRAY[ARRAY[...], ARRAY[...]])?

Your code assumes

ARRAY[ARRAY['myns', 'myns2'], ARRAY['http://example.com', 'http://example2.com']]

Shouldn't it be

ARRAY[ARRAY['myns', 'http://example.com'], ARRAY['myns2', 'http://example2.com']]

?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-03-22 21:01:23 Re: [PATCHES] xml2 contrib patch supporting default XML namespaces
Previous Message Peter Eisentraut 2007-03-22 20:55:24 Re: [PATCHES] xpath_array with namespaces support

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-03-22 21:01:23 Re: [PATCHES] xml2 contrib patch supporting default XML namespaces
Previous Message Bruce Momjian 2007-03-22 20:58:09 Re: guc patch: Make variables fall back to default values