jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <ju...@zitting.name>
Subject Re: How to limit the nodes amount with xpath query returned
Date Thu, 10 Nov 2005 16:01:29 GMT

Marcel Reutegger wrote:
>> So, I hope to limit the result set amount when query executed and
>> returned, just like MySQL's " Limit " statment.
> This would be a proprietary extension, and I don't know how you would
> specify such a keyword in XPath.

I think the position() function in XPath is the "official" way of
achieving this effect. Something like

    //*[position() < 100]


    //*[position() >= 100 and position() < 200]

Currently Jackrabbit only supports the equality comparisons for the
position() function. Should a Jira issue be posted for this?


Jukka Zitting

View raw message