This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Pagination


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]