jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric" <amist...@nemours.org>
Subject Using xpath to return only certain number of results..
Date Thu, 03 May 2007 17:58:58 GMT

Is it possible to specify in xpath expression how many results it should return.
For example in the query below I get 50+ results but I only want first 5...

/jcr:root/site1/news//element(*,nt:base)[@tag='news' and MetaData/@mgnl:template='np-article']
order by @date descending

I looked into count() and position() but I am not sure how to apply them to above query...

Thanks in advance...

View raw message