Hi all! I'm facing the problem that I can't use a predicate after a jcr:deref if the query contains multiple jcr:deref. If the last element before the predicate is not jcr:deref it works as expected.
For example, the following query always returns empty results: /jcr:root//element(*, my:LOLink)/jcr:deref(@my:linkedLO, '*')//element(*, my:DataLink)/jcr:deref(@my:linkedData, '*')[jcr:contains(., '" + searchTerm + "')] On the other hand, the following querys return proper results: /jcr:root//element(*, my:LOLink)/jcr:deref(@my:linkedLO, '*')//element(*, my:DataLink)/jcr:deref(@my:linkedData, '*')/element(*, my:content)[jcr:contains(.,'" + searchTerm + "')]"; /jcr:root//element(*, my:LOLink)/jcr:deref(@my:linkedLO, '*')[jcr:contains(.,'" + searchTerm + "')]"; Regards Michael Korat
