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

RE: Pagination

Subject: RE: Pagination
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 4 Dec 2000 10:53:10 -0000
re pagination
> 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.

You need to do a new transformation for each user request, that takes the
starting page number as a parameter. You access this parameter in the
stylesheet using a global variable such as <xsl:param name="startpage"
select="1"/>. Then your root template does something like

<xsl:apply-templates select="//record[number($startpage)]"/>

To see how to supply the parameter, see the Microsoft API documentation, or
the example on page 608 of Wrox XSLT Programmer's Reference.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • RE: Pagination
    • Kay Michael - Fri, 1 Dec 2000 11:41:13 -0000
      • <Possible follow-ups>
      • hemant18 - 1 Dec 2000 11:29:06 -0800
      • Kay Michael - Mon, 4 Dec 2000 10:53:10 -0000 <=

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.