Click here to Skip to main content
Click here to Skip to main content

Pagination using XSL

, 15 Apr 2010
Rate this:
Please Sign up or sign in to vote.
To display data in multiple pages using XSL.

Introduction

Below is a way to display your xml in multiple pages with Prev and Next links. You could customize it to display any number of entries on a page. It takes in 2 parameters that could be passed as querystrings to the page.

Page - should hold the value of which page is currently displayed.
PageSize - should hold the value of how many entries should be displayed in a page.
_dirresult - replace this with the url to the page that does the transformation

Note: First page id is 0

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>">

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

VivekAyer

United Kingdom United Kingdom
No Biography provided

Comments and Discussions

 
AnswerRE: Pagination using XSL Pinmemberq25821-Nov-08 0:16 
QuestionNot understood properly Pinmemberrascalpranesh23-Jun-08 22:53 
QuestionCannot go next page, the parameter Page and PageSize not changing on next page PinmemberPaillaRajashekarReddy13-May-08 1:18 
AnswerRe: Cannot go next page, the parameter Page and PageSize not changing on next page PinmembersalahudeenDiamond10-Mar-09 5:14 
GeneralCannot go next page, the parameter Page and PageSize not changing on next page PinmemberEhteshamJax15-Aug-07 1:15 
Questionhow to use pagination to list the next records using next link Pinmemberchennaivijayan31-May-06 22:11 
AnswerRe: how to use pagination to list the next records using next link PinmemberEhteshamJax15-Aug-07 1:17 
GeneralRe: how to use pagination to list the next records using next link PinmembersalahudeenDiamond10-Mar-09 5:15 
GeneralRe: how to use pagination to list the next records using next link Pinmemberhighpowered22-Oct-10 16:42 
QuestionQuick questions. Pinmembereddiephoenix2-Feb-06 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 16 Apr 2010
Article Copyright 2005 by VivekAyer
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid