You could send the fixed xml from your customer through an xsl, which
outputs a new xml structure. Then send the output to FOP.

Regards Sander.

-----Oorspronkelijk bericht-----
Van: Mirko Sertic [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 20 november 2002 15:44
Aan: [EMAIL PROTECTED]
Onderwerp: AW: Invoice positions & partial sums


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
#




================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 
================================================
The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.


Reply via email to