Limit HTML rows displayed on page with XSLT.
Posted on 2006-07-20
I have some xml data which I currently transform with XSLT into a HTML table, this works fine only I want to display 20 results at a time with a link to the next 20/previous 20 results, when you click the link the next 20 are displayed etc.
I am currently doing the following, which will only ever print out the first 20 rows as I have hard coded the values.....
<xsl:if test="@num > 0 and @num < 20">
<xsl:value-of select="@num"/></xsl:with-param> </xsl:call-template>
So, ideally I need buttons or html links that would increment or decrement the limits for the rows dynamically.
Is this possible with XSLT? If so could someone give me an example? Is my code above heading in completely the wrong direction??
Your help is much appreciated.