Re: XPath question - big trouble

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Marian POPESCU <softexpert(at)libertysurf(dot)fr>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: XPath question - big trouble
Date: 2006-08-07 16:48:08
Message-ID: 1154969287.21451.139.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marian,

> 1.
> SELECT
> xpath_nodeset(xml_data, '/mydocument/body/chapter/contents/paragraph[(at)objid
> = "02"]|/mydocument/body/paragraph[(at)objid="87"]')
> FROM xmltable
> WHERE id = 3

You could maybe use the xpath: '//paragraph[(at)objid = "02"]' if you want
all paragraphs at all document levels.

A nice xslt reference is:
file:///home/cnagy/offline/XSLTreference/Output/index.html

There you can also exercise your xpath skills...

Cheers,
Csaba.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2006-08-07 17:00:01 Re: Practical maximums (was Re: PostgreSQL theoretical
Previous Message Marian POPESCU 2006-08-07 16:39:51 Re: XPath question - big trouble