Hello!

sounds good. Unlikely it's not possible to change the structure of the xml
data. It's fixed by our customer.
Isn't there any other way? ( i think of faking around with the sum()
funktion and node tests? )

Cheers

Mirko

-----Ursprüngliche Nachricht-----
Von: Müller, Markus [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. November 2002 15:36
An: [EMAIL PROTECTED]
Betreff: AW: Invoice positions & partial sums


Hi Mirko,

when you provide the partial sums within the XML, you can work with markers.
This would look like this:

// -- the items all have a partialSum
<xsl:for-each select="item">
  <fo:table-row>
    <fo:table-cell>
        <fo:block>
          <fo:marker marker-class-name="carry">
            <xsl:value-of select="partialSum"/>
          </fo:marker>
        </fo:block>
    </fo:table-cell>
  </fo:table-row>
</xsl:for-each>

// -- find the last partial sum on the page and display on page bottom
<fo:static-content flow-name="xsl-region-after">
  <fo:block text-align="right">
    <xsl:text>carry from this page: </xsl:text>
        <fo:retrieve-marker     retrieve-class-name="carry"
                                        retrieve-boundary="page"

retrieve-position="last-ending-within-page"/>
  </fo:block>
</fo:static-content>

I hope, this will help a little bit (you can find many samples etc. on the
web just using google).

Markus

# -----Ursprüngliche Nachricht-----
# Von: Mirko Sertic [mailto:[EMAIL PROTECTED]
# Gesendet am: Mittwoch, 20. November 2002 14:11
# An: FOP-User (E-Mail)
# Betreff: Invoice positions & partial sums
#
# Hello!
#
# i'm working on a stylesheet that generates an invoice. I'd
# like to have a
# partial sum on the bottom of the first page of the invoice, when
# it has more than one page. Has anybody done this before?
#
# Greetings
#
# Mirko
#

Reply via email to