jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaojie Shen <Xiaojie.S...@cybercomgroup.com>
Subject How to use position() in Xpath query
Date Tue, 29 Jun 2010 08:08:40 GMT
Hi

I saw an announce in 2007 that position() function doesn't work in release 2.1. Is it the
same today?

If it works now, can somebody explain how to use position() in Xpath query to limit the number
of search results? For example, how should it be used to the query below?
String query = "//element(*, nt:file) [jcr:like(@jcr:createdBy, 'u%')] order by @jcr:created
descending";

Thanks in advance!
Shen



Mime
View raw message