jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lei Zhou <L...@pointalliance.com>
Subject Re: Question on jcr:deref usage
Date Fri, 24 Nov 2006 20:27:24 GMT

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)[@Subject='Manual']/jcr:deref(@ProductReference,'*')


>Thanks Marcel,
>I just tried the query below and got exceptions complaining about "second 

>argument type for jcr:like".
>//element(*, Document)[@Subject = 
>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)[@Subject = 'Manual']/jcr:deref(@ProductReference, 
>Did I miss anything? 


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message