[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Pagination

Subject: RE: Pagination
From: hemant18@xxxxxxxxxxxx
Date: 1 Dec 2000 11:29:06 -0800
pagination using xsl
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.