jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject XPath help
Date Mon, 05 Oct 2009 12:34:25 GMT
Hi,
I have 2 nodes:

/catalog/products/wooly_hat
/catalog/products/top_hat

both nodes have a title property.

I can't figure out how to write a XPATH query that will return nodes that
have a supplied value as there title. An SQL equivalent would be something
like select * from products where title = 'Wooly Hat'.

I have a query as follows but I'm not sure where to go with it. It feels
like I need to have a wild card to indicate that I want to search in each of
the products child nodes.

//catalog/products[@name = 'Wooly Hat']

Can anyone give me a pointer?

Regards

Ben

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message