|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Limiting XSL Results for Timely Web Page Display
My idea of creating a temporary file with the search results would not work - that is, if there is more than one user. So to rephrase the problem: I need to have the XSL transformation take an XML file and search on a string in an element and then produce HTML output for 1. items that match the search text and 2. that are in a certain range - for timely web page display e.g. <dictionary> <word>A</word> <word>B</word> <word>A B</word> <word>A B C</word> <word>B D</word> <word>A B C D</word> </dictionary> If I want 2 items per page and the search value is 'A': Then on the first call to the XSL I would request matches 1 to 2 then the XSL would output: <p>A</p> <p>A B</p> Next (hyperlink to previous results) The next request would be for items 3 and 4, etc. <p>A B C</p> <p>A B C D</p> Prev I can see how to match on values and how to get the position of items but my problem is that I cannot figure how to get a set of matches and then only output a subset of those matches based on their position. Would "for-each" be the way or do I need to create a new "element"? 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








