xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michail Bikoulis <Michail.Bikou...@ementor.no>
Subject RE: header
Date Fri, 09 Nov 2001 15:24:09 GMT
I think you can have something like this:

        <xsl:for-each select="account">
          <fo:page-sequence master-name="main">

            <!-- Header content. -->
            <fo:static-content flow-name="xsl-region-before">
              <fo:block text-align="start" font-size="70%">
                <xsl:value-of select="@no"/>

            <fo:flow flow-name="xsl-region-body">

So you get a page-sequence for each account. The xsl:apply-templates
statement can handle the <detail> tags and create the table you want.



-----Original Message-----
From: Ingo BrĂ¼ll [mailto:ibruell@gmx.de]
Sent: 9. november 2001 16:14
To: fop-user@xml.apache.org
Subject: RE: header


> I do this by placing the following code in my page-sequence:
>             <!-- Header content. -->
>             <fo:static-content flow-name="xsl-region-before">
>               <fo:block text-align="start" font-size="70%">
>                 <xsl:value-of select="Name"/>
>               </fo:block>
>             </fo:static-content>

that will not work for me. my xml file has the following structure:

<mandant >
  <account no="1" year="1995" desc="something">
    <detail ... />
    <detail ... />
    <detail ... />
  <account no="2" year="1995" desc="bla">
    <detail .../>
   [...] many details
  [...] many accounts

I generate a fo:table where the details would be shown. The account
attributes should always shown in the header (xsl-region-before). With your
code i do
not get the current account tags (<xsl:value-of select="@no"> or
yxsl:value-of select="account/@no" /> ).

so long

Ingo Bruell

<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: 9DD0 1776 DF4D 5B16  A532 C2A1 4701 EEA2
Germany      PGP-Public-Key available at pgpkeys.mit.edu

View raw message