This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Pagination
- To: xsl-list at mulberrytech dot com
- Subject: RE: Pagination
- From: hemant18 at 123india dot com
- Date: 1 Dec 2000 11:29:06 -0800
- Reply-To: xsl-list at mulberrytech dot com
hi
Thanks for your solution. But the problem is a bit more complex. I have on my page a drop down Select, which indicates the page number. I have written a javascript function that is called onChange= of the select object.
When the user selects a page number, lets say page number 4 the page should display records from 31-40. If the user presses page number 5 it should display records from 41-50 etc.
If I am on page number 4 which is displaying 31-40, pressing the PREV button I should get records from
21-30, and pressing NEXT button should get me records from 41-50 etc.
I appreciate if you can help out in this , with a sample code and explanation
On Fri, 01 December 2000, Kay Michael wrote:
>
> > 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
______________________________________________________
123India.com - India's Premier Portal
Get your Free Email Account at http://www.123india.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list