Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > XSL output using ASP

Thread Tools

XSL output using ASP

Posts: n/a
This problem has been bothering me for a couple of days now. I'm trying to
get a small xml based search engine to output 20 results on one page then 20
on the next page when you click a link and so on. I've got it sort of
working to the extent that the first first page outputs 20 results but when
I click next the next 20 results aren't displayed, to see what I mean click
the following link, press search (without entering anything) and then click
next page.

Here are the files I use to try and achieve this in text form so they can be
viewed easier.

search.asp does what it's supposed to, it takes text entered into the text
field of my form, splits it up into a maximum of 5 words (to search
individual words) and passes them onto search_results.xsl which again seems
to work properly because it outputs the first 20 results. I also passed the
"full" string onto this page as well because I thought it would be easier to
pass that on later as opposed to 5 individual words.

<xslaram name="text0" />
<xslaram name="text1" />
<xslaram name="text2" />
<xslaram name="text3" />
<xslaram name="text4" />
<xslaram name="full" />
<xslaram name="startPos" select="1" />
<xslaram name="recordsPerPage" select="20" />
<xslaram name="endPos" select="$startPos + $recordsPerPage" />

I then try to pass the "full" string and "startPos" to the next.asp page
using the line
<a href="next.asp?id=full&amp;startPos={$endPos}">nex t page</a>

This is where the process breaks down.

Any Ideas?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post dropdown using xsl output bic ASP .Net 8 01-20-2010 08:11 PM
Use output of XSL transformation as new XSL stylesheet XML 0 01-16-2006 02:29 PM
xsl - ignore XSL:FO tags, just output them XML 0 12-21-2005 03:49 PM
XSL Question tp xsl:for-each and xsl:variable XML 1 05-27-2005 09:25 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM