[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

Subject: Re: Limiting XSL Results for Timely Web Page Display
From: "Bruce Dailey" <bruce@xxxxxxxxxxxx>
Date: Sat, 23 Nov 2002 12:46:57 +0900
limiting xsl output
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


Current Thread

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.