Thanks Marcel, I just tried the query below and got exceptions complaining about "second argument type for jcr:like". //element(*, Document)[EMAIL PROTECTED] = 'Manual']/jcr:deref(@ProductReference, *) Here is the error: javax.jcr.query.InvalidQueryException: Wrong second argument type for jcr:like I then replaced '*' with '%', which seems to be accepted, but did not return any result: //element(*, Document)[EMAIL PROTECTED] = 'Manual']/jcr:deref(@ProductReference, '%') Did I miss anything?
Thanks, Lei
