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

RE: paging to next and previous page (was untitled)

Subject: RE: paging to next and previous page (was untitled)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sun, 21 Jan 2001 16:30:26 -0000
javascript refresh previous page
>  How to automate updating the value of a param for the
> selected outputs
>
> The problem is like this; say, there are 20 lines in the xml
> and  5 lines can be isplayed
> for the given page number. The page number ,pageno, is
> defined using <xsl:param name="pageno" select="1"/>.
> The output is done by calling a named template with the
> pageno named param.

Judging from your attempt so far, it looks as if you are looking for a
client-side solution. You'll find an example of a similar application on
page 608 to 610 of my XSLT Programmers Reference. My solution there is to
have a JavaScript function called refresh() on the HTML page that invokes
the transformation, and to generate the hyperlink in the form of a call to
this JavaScript function, e.g.

<a href="javascript:refresh(23)">next page</a>

The refresh function invokes a new transformation supplying the value 23 as
a parameter.

Mike Kay


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


Current Thread
  • [no subject]
    • SFYang - Sun, 21 Jan 2001 03:42:12 -0500 (EST)
      • Michael Kay - Sun, 21 Jan 2001 11:34:26 -0500 (EST) <=

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.