我需要找到解决该问题的方法:我必须建立一个If条件,条件是“如果这是最后一页,我将向您显示此行,否则我不会。”
下面,我将向您展示代码,以便您可以更好地理解我要说的话。
我已经尝试过使用“ therverylastpage”构建变量,但这似乎是一个愚蠢的解决方案。
<xsl:if test="how can I do this?">
<fo:table-row>
<fo:table-cell padding="0.1cm">
<fo:table table-layout="fixed" width="100%" border="1pt solid black" margin-top="0.2cm" >
<fo:table-column column-width="15%"/>
<fo:table-column column-width="15%"/>
<fo:table-column column-width="10%"/>
<fo:table-column column-width="10%"/>
<fo:table-column column-width="50%"/>
<fo:table-header >
<fo:table-row>
<fo:table-cell padding="0.1cm">
<fo:block text-align="right" font-size="9">Importo</fo:block>
</fo:table-cell>
<fo:table-cell padding="0.1cm">
<fo:block text-align="right" font-size="9">Iva</fo:block>
</fo:table-cell>
<fo:table-cell padding="0.1cm">
<fo:block text-align="right" font-size="9">Aliquota</fo:block>
</fo:table-cell>
<fo:table-cell padding="0.1cm">
<fo:block text-align="center" font-size="9">C.iva</fo:block>
</fo:table-cell>
<fo:table-cell padding="0.1cm">
<fo:block font-size="9">Descrizione</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates select="piede/iva/ivariga"/>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" width="100%" margin-top="0.5cm" border="1pt solid black">
<fo:table-body >
<xsl:apply-templates select="piede/totdoc"/>
</fo:table-body>
</fo:table>
<fo:block margin-top="0.5cm" text-align="center" font-size="10">
<xsl:value-of select="notepagamento"/>
</fo:block>
<fo:block id="TheVeryLastPage"> </fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:if>