I want to show this row on the base of last page only. If the page number is last one then this row should be displayed in table otherwise not.Only the last page should display this total section.
Code:
<xsl:choose>
<xsl:when test="position() = last()">
<fo:table-row border-width="4px" border-style="solid" font-family="Arial">
<fo:table-cell border-width="1px" border-style="solid">
<fo:block font-size="11pt" text-align="left" />
</fo:table-cell>
<fo:table-cell font-weight="bold" border-width="1px" border-style="solid" font-family="Arial">
<fo:block font-size="11pt" text-align="right">
Total
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="1px" border-style="solid" font-family="Segoe UI">
<fo:block font-size="11pt" text-align="center">
<xsl:value-of select="last()" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
But this did not work because last and position works only on nodes.I have tried to add the the fo:page-number in variable but it won't work also.