Hello,
For my website I'm looking for a xslt pagination script to use with Symphony cms.
Now I found this one :
http://www.codeproject.com/KB/dotnet/pagination.aspx
But one thing looks wierd to me.
Here's the code:
Code:
<xsl:for-each select="root/customer">
<!-- Pagination logic -->
<xsl:if test="position() >= ($Page * $PageSize) + 1">
<xsl:if test="position() <= $PageSize + ($PageSize * $Page)">
<!-- Do display here -->
</xsl:if>
</xsl:if>
</xsl:for-each>
When Im on page 1 ($Page=1) and I would display 1 article (pagesize=1)
Then the first xsl is false because position = 1 and page*pagesize =1 + 1 = 2
So in my opion it never reach the <!-- do display here
But how can I take care that there will be something to display.
Roelof