F
freefly_xml
I want to test to see if I am on the last page of a document. In this
example it is an invoice. I want to print a different table in REGION
AFTER when I am on the last page. I have tried many variations, no luck
yet. It seems like it should be an easy thing to do with xsl:choose.
Any ideas? Here is one of my attempts.
More detail of what the xml, xsl and pdf look like are here:
http://www.bangboompow.com/xml/invoice/
I am trying to test the field value in the footer area like this:
<xsl:choose>
<xsl:when test="document_end = 'TRUE'">
<fo:block font-size="10pt" font-weight="bold">
LAST PAGE
</fo:block>
</xsl:when>
<xsltherwise>
<fo:block font-size="10pt" font-weight="bold">
not the last page
</fo:block>
</xsltherwise>
</xsl:choose>
I am trying to set the value of the field in the detail line loop like
this:
<xsl:if test="position() = last()">
<xsl:variable name="document_end" select="'TRUE'" />
</xsl:if>
example it is an invoice. I want to print a different table in REGION
AFTER when I am on the last page. I have tried many variations, no luck
yet. It seems like it should be an easy thing to do with xsl:choose.
Any ideas? Here is one of my attempts.
More detail of what the xml, xsl and pdf look like are here:
http://www.bangboompow.com/xml/invoice/
I am trying to test the field value in the footer area like this:
<xsl:choose>
<xsl:when test="document_end = 'TRUE'">
<fo:block font-size="10pt" font-weight="bold">
LAST PAGE
</fo:block>
</xsl:when>
<xsltherwise>
<fo:block font-size="10pt" font-weight="bold">
not the last page
</fo:block>
</xsltherwise>
</xsl:choose>
I am trying to set the value of the field in the detail line loop like
this:
<xsl:if test="position() = last()">
<xsl:variable name="document_end" select="'TRUE'" />
</xsl:if>