jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <christ...@sulu3000.de>
Subject Combined attribute test on childnode for xpath query
Date Fri, 06 Jul 2007 15:28:52 GMT
Hi all,

I'm not a master of XPath at all, so may someone can tell me if the following is 
possible with Jackrabbit, and if yes, how.

I need to execute a query like this:

//element(*, nt:foo)[test/*[@foo='a' and @bar='b']]

This means I need all nodes of type "nt:foo" which have "foo=a" and "bar=b" on 
_one_ specific childnode. If I write it like that

//element(*, nt:foo)[test/@foo='a' and test/@bar='b']

it seems like the condition is matched if for example "test[1]/@foo='a' and 
test[2]/@bar='b'" is true.


View raw message