有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何构建关于最后一页的If条件

我需要找到这个问题的解决方案:我必须构建一个If条件,该条件表示“如果这是最后一页,我将向您显示这一行,否则我不会”

下面我将向您展示代码,以便您更好地理解我要说的内容

我已经尝试过用“Therverylastage”构建一个变量,但这似乎是一个愚蠢的解决方案

<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>

共 (0) 个答案