[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: limit number of row return by xslt
This is a kind of generalised way you can solve this.
You must some how have in the XML of the page, the pageid of the current page. like page-id = 1 or page-id = 2.. now. Decide how many results go into each page.. based on your favourite algorithm..or may be a standard value. so you have tha max results per page. and you have the start index which is 1. now run a for-each select = "results[position() >=$start-index and position() <=$max-per-page]"> this will limit your search results... now continue doing this for the nextpage and so on.. where the start-index and max-per page keep changing based on the page id. Hope this helps Vasu From: Tham Tinh <khautinh@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: XSL List <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> Subject: limit number of row return by xslt Date: Fri, 20 Aug 2004 15:15:01 -0700 (PDT) _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger
|
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
|