Hmm, okay thanks Stefan. After I get my little gizmo working I'll see what I can do to give back to the community. :)
Darn, something is amiss or maybe I missed something.
In my XSL document I have the following:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:output method="html" version="3.2" encoding="US-ASCII"/>
<xsl:template match="listings">
<xsl:param name="currentPage" select="1"/>
<xsl:param name="pageNum_MyEmploymentListings" select="-1"/>
<a href="{$pageNum_MyEmploymentListings}">Apple</a>
<a href="{$currentPage}">Pear</a>
<table cellpadding="0" cellspacing="0"><tr><th>Job Title</th><th>Deadline</th></tr>
<xsl:apply-templates select="listing">
<xsl:sort order="descending" select="deadline"/>
</xsl:apply-templates>
</table>
<a href="http://10.10.0.7/Visitors/HumanResources/tabid/330/Default.aspx?pageNum_MyEmploymentListings=2">2</a>
<xsl:apply-templates select="totalPages"/>
</xsl:template>
<xsl:template match="listing">
<tr>
<xsl:attribute name="style">
font-size:small;
<xsl:choose>
<xsl:when test="position() mod 2 = 1">
background-color:teal;
color:white;
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td valign="top">
<xsl:value-of select=".//jobTitle"/>
</td>
<td valign="top">
<xsl:attribute name="style">
font-size:small;
</xsl:attribute>
<xsl:value-of select=".//deadline"/>
</td>
</tr>
</xsl:template>
<xsl:template match="totalPages">
Total Pages <xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
In the XSL Transformation Settings, XSL Parameters I did the following:
pageNum_MyEmploymentListings static 36
currentPage static 18
Shouldn't $currentPage be 18 instead of 1?