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/[EMAIL PROTECTED]'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.

Thanks,
Christoph

Reply via email to