Hi,

Just found out that I have to quote the * char, and '%' indeed doesn't 
work, although it is the one used for jcr:like.

//element(*, Document)[EMAIL 
PROTECTED]'Manual']/jcr:deref(@ProductReference,'*')

regards,
Lei

>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? 


 

Reply via email to