Hi i see the relativ fo transformation and it seems right, the only unknow issues for me is the result after the treeprocessor because the result is and i dont know if is right.
[code]
<block ipd="141482" bpd="14400" ipda="141482" bpda="14400"
bap="0 0 0 0">
<lineArea ipd="141482"
bpd="11100" ipda="141482"
bpda="14400" bap="0 0 0 0"
space-before="1650"
space-after="1650">
<text offset="0"
baseline="8616" ipd="46704"
bpd="11100" ipda="46704"
bpda="11100"
bap="0 0 0 0"
font-name="sans-serif"
font-style="normal"
font-weight="400"
font-size="12000"
color="#000000">
<word offset="0">€</word>
<space
offset="0"> </space>
<word
offset="0">684,00</word>
</text>
</lineArea>
</block>
[/code]
I send the two trasformation. http://old.nabble.com/file/p32870816/fo.xml
fo.xml http://old.nabble.com/file/p32870816/1321885821859 1321885821859
Pascal Sancho wrote:
>
> Hi Pedro
>
> Regarding your 1st question: alternative to marker (content on last page):
> you can use page-position="last" on an
> fo:conditional-page-master-reference
>
> Regarding your 2nd question: extra rows:
> You should first have a look on resulting XSL-FO to determine the stage
> of the issue:
> either XSLT transformation,
> or FOP rendering.
>
> In the latter case, you should attach a short XSL-FO that still
> demonstrates the issue (if any).
>
>
> Le 21/11/2011 10:07, pedro a écrit :
>>
>> 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">&#8364;&#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">&#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">&#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">&#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?
>>
>>
>
> --
> Pascal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/fo-markers-problem-tp32870275p32870816.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
