|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Pagination
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








