|
[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)
> 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
|
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








