XSLT
XSLT Contents
Summary It is normal to display a long list of items in pages of 20, for example, items at a time. This snippet describes how to go about segmenting the XML data for Page X and only that data.
The easiest way to page is to have a style sheet parameter with which your external code sends the desired page number into the style sheet. Then you work with the position() and ceiling XPath functions to segment the data based on that page number.
The XSTL provided here does the pagination of the XML provided. The page-num parameter defaults to page 1; and the page-size variable can be changed to modify how many rows are included on each page.
Obviously this doesn't put out great HTML, but it gives you the idea. Also, it is required that the thispage.htm really be a server side script which calls the XSLT processor of your choice to translate the input XML with setting the parameter with the passed in page query value. Since setting parameters is engine dependent, I'll leave that to your engine's documentation.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting