xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Bruell <ibru...@gmx.de>
Subject Re[2]: header
Date Fri, 09 Nov 2001 17:06:34 GMT
Hi Michail,

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

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

MB>             <fo:flow flow-name="xsl-region-body">
MB>               <xsl:apply-templates/>
MB>             </fo:flow>
MB>           </fo:page-sequence>
MB>         </xsl:for-each>

It works for one account :-) If there are more accounts the error
"fo:static-content not allowed after fo:flow" happens. And i saw that
the region-body lays over region-before.

My xsl-file looks like:

      <fo:layout-master-set>
        <fo:simple-page-master master-name="AccountPage"
           page-height="21cm"
           page-width="29.7cm"
           margin-top="1cm"
           margin-bottom="1cm"
           margin-left="1cm"
           margin-right="1cm">
          <fo:region-body margin="1.5cm 1in" />
          <fo:region-before extent="1.5cm"
                            padding="6pt 1in"
                            display-align="after" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      
      <fo:page-sequence master-name="AccountPage" initial-page-number="1">
          <xsl:apply-templates />
      </fo:page-sequence>
    </fo:root>
  </xsl:template>
          
  <xsl:template match="account">
      <fo:static-content flow-name="xsl-region-before">
        <fo:block>
          <xsl:call-template name="head"/>  <!-- a small table with
          header informations -->
        </fo:block>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body" font-family="Courier"
                 font-size="10pt">
       <!-- detrails -->
      </fi:flow>
  </xsl:template>

so long


Ingo Bruell

---
<ibruell@gmx.de>
<Ingo.Bruell@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu


Mime
View raw message