This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Pagination
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Pagination
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 1 Dec 2000 11:41:13 -0000
- Reply-To: xsl-list at mulberrytech dot com
> How to do pagination using XSL. ?
>
> I have many records which can go upto 500. I need to display
> 20 records on one page . By clicking NEXT butoon it should
> show me next 20 records and so on.
Write a template that uses match="item[position() mod 20 = 1]", and within
this template, do for-each select = ". | following-sibling::item[position()
< 20]".
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list