Hi all
    i use markers to print some data only on the last page(if there is
another possibility teach me).

I declare the markers :

[code]
<fo:block font-family="Times" font-size="1pt">
                                <fo:marker marker-class-name="totale">
                                        <xsl:text
disable-output-escaping="yes">&#38;#8364;&#38;#160;</xsl:text>
                                        <xsl:value-of 
disable-output-escaping="yes"
select="/fattura/totali/totale"/>
                                </fo:marker>
                                <fo:marker marker-class-name="contr-conai">
                                        <xsl:text 
disable-output-escaping="yes">Contributo CONAI assolto ove
dovuto</xsl:text>
                                </fo:marker>
                                <fo:marker marker-class-name="imponibile">
                                        <xsl:for-each 
select="sommario/dett-sommario">
                                                <fo:block font-family="Times" 
font-size="10pt" text-align="right">
                                                        <xsl:value-of 
disable-output-escaping="yes" select="./imponibile"/>
                                                </fo:block>
                                        </xsl:for-each>
                                </fo:marker>
                                <fo:marker marker-class-name="aliquota">
                                        <xsl:for-each 
select="sommario/dett-sommario">
                                                <fo:block font-family="Times" 
font-size="10pt" text-align="right">
                                                        <xsl:value-of 
disable-output-escaping="yes" select="./aliquota"/>
                                                </fo:block>
                                        </xsl:for-each>
                                </fo:marker>
                                <fo:marker marker-class-name="esenzione">
                                        <xsl:for-each 
select="sommario/dett-sommario">
                                                <fo:block font-family="Times" 
font-size="10pt" text-align="right">
                                                        <xsl:value-of 
disable-output-escaping="yes" select="./esenzione"/>
                                                </fo:block>
                                        </xsl:for-each>
                                </fo:marker>
                                <fo:marker marker-class-name="importo">
                                        <xsl:for-each 
select="sommarioEsenti/sommarioEsentiDett">
                                                <fo:block font-family="Times" 
font-size="10pt" text-align="right">
                                                        <xsl:value-of 
disable-output-escaping="yes" select="./importo"/>
                                                </fo:block>
                                        </xsl:for-each>
                                </fo:marker>
                                <fo:marker marker-class-name="causale">
                                        <xsl:for-each 
select="sommarioEsenti/sommarioEsentiDett">
                                                <fo:block font-family="Times" 
font-size="10pt" text-align="left"
                                                        margin-left="2mm">
                                                        <xsl:value-of 
disable-output-escaping="yes" select="./causale"/>
                                                </fo:block>
                                        </xsl:for-each>
                                </fo:marker>
                        </fo:block>

[/code]



and i call it when i need :

[code]

<fo:table-row height="20mm">
                                                <fo:table-cell>
                                                        <fo:table width="200mm" 
height="20mm" table-layout="fixed">
                                                                
<fo:table-column column-width="30mm"/>
                                                                
<fo:table-column column-width="20mm"/>
                                                                
<fo:table-column column-width="30mm"/>
                                                                
<fo:table-column column-width="120mm"/>
                                                                <fo:table-body>
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="count(sommario/dett-sommario) = 0">
                                                                                
        <fo:table-row keep-together="always" height="20mm">
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:block font-family="Times" font-size="8pt"
                                                                                
                text-align="right">
                                                                                
                <xsl:text disable-output-escaping="yes">&#38;#160;</xsl:text>
                                                                                
                </fo:block>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:block font-family="Times" font-size="8pt"
                                                                                
                text-align="right">
                                                                                
                <xsl:text disable-output-escaping="yes">&#38;#160;</xsl:text>
                                                                                
                </fo:block>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:block font-family="Times" font-size="8pt"
                                                                                
                text-align="right">
                                                                                
                <xsl:text disable-output-escaping="yes">&#38;#160;</xsl:text>
                                                                                
                </fo:block>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell>
                                                                                
                <fo:block font-family="Courier" font-size="8pt"
                                                                                
                text-align="center">
                                                                                
                <fo:retrieve-marker
                                                                                
                retrieve-class-name="contr-conai"
                                                                                
                retrieve-position="last-ending-within-page"
                                                                                
                retrieve-boundary="page-sequence"/>
                                                                                
                </fo:block>
                                                                                
                </fo:table-cell>
                                                                                
        </fo:table-row>
                                                                                
</xsl:when>
                                                                                
<xsl:otherwise>
                                                                                
        <fo:table-row keep-together="always" height="20mm">
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:retrieve-marker
                                                                                
                retrieve-class-name="imponibile"
                                                                                
                retrieve-position="last-ending-within-page"
                                                                                
                retrieve-boundary="page-sequence"/>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:retrieve-marker
                                                                                
                retrieve-class-name="aliquota"
                                                                                
                retrieve-position="last-ending-within-page"
                                                                                
                retrieve-boundary="page-sequence"/>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell border-right-color="black"
                                                                                
                border-right-style="solid"
                                                                                
                border-right-width="0.5pt">
                                                                                
                <fo:retrieve-marker
                                                                                
                retrieve-class-name="esenzione"
                                                                                
                retrieve-position="last-ending-within-page"
                                                                                
                retrieve-boundary="page-sequence"/>
                                                                                
                </fo:table-cell>
                                                                                
                <fo:table-cell>
                                                                                
                <fo:block font-family="Courier" font-size="10pt"
                                                                                
                text-align="center">
                                                                                
                <fo:retrieve-marker
                                                                                
                retrieve-class-name="contr-conai"
                                                                                
                retrieve-position="last-ending-within-page"
                                                                                
                retrieve-boundary="page-sequence"/>
                                                                                
                </fo:block>
                                                                                
                </fo:table-cell>
                                                                                
        </fo:table-row>
                                                                                
</xsl:otherwise>
                                                                        
</xsl:choose>
                                                                </fo:table-body>
                                                        </fo:table>
                                                </fo:table-cell>
                                        </fo:table-row>

[/code]

I can have more than one row in my table and it semms that every time when a
marker is called, the marker add another row or an another block why?


-- 
View this message in context: 
http://old.nabble.com/fo-markers-problem-tp32870275p32870275.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to