You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Hahn Kurt (CHA)" <ku...@etat.ge.ch> on 2002/08/15 16:13:41 UTC

xsl-region-after doesn't get displayed

Hi,
I'm trying to display a footer on the first page of my document, and it just
won't get displayed. Maybe someone can see what's wrong? 

 <fo:page-sequence master-reference="premier">
 <fo:static-content flow-name="xsl-region-before">
  <fo:block line-height="14pt" font-family="sans-serif" font-size="12pt"
text-align="center">REPUBLIQUE ET CANTON DE GENEVE</fo:block> 
  <fo:block line-height="40pt" space-before="15pt" /> 
 <fo:block text-align="center" break-before="line">
  <fo:external-graphic width="auto" height="2.25cm"
src="D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\images\ecussonRVB.j
pg" /> 
  </fo:block>
  <fo:block line-height="40pt" space-before="15pt" /> 
  <fo:block font-size="10pt" font-weight="normal" font-family="sans-serif"
font-style="normal" text-align="center" break-before="line"
line-height="18pt">55e législature</fo:block> 
  <fo:block font-size="10pt" font-weight="normal" font-family="sans-serif"
font-style="normal" text-align="center" break-before="line"
line-height="18pt">1re année</fo:block> 
  </fo:static-content>
 <fo:static-content flow-name="xsl-region-after">
<!-- *********************************
This part isn't displayed. Why?
**************************
-->
 <fo:block font-family="sans-serif" font-size="8pt">
  text for testing purposes
  <fo:page-number /> 
  </fo:block>
  </fo:static-content>
 <fo:flow flow-name="xsl-region-body">
  <fo:block font-size="20pt" font-weight
......


And this is the page-layout:

<fo:layout-master-set>
     <fo:simple-page-master master-name="premier"
                  page-height="29.7cm" 
                  page-width="21cm"
                  margin-top="3cm" 
                  margin-bottom="4.5cm" 
                  margin-left="2.5cm" 
                  margin-right="2.5cm">
       <fo:region-body margin-top="6cm" margin-bottom="1cm"/>
       <fo:region-before extent="6cm"/>
     </fo:simple-page-master>
</fo:layout-master-set>

Re: xsl-region-after doesn't get displayed

Posted by Noel Golding <no...@spearreport.com>.
it appears you are missing <fo:region-after extent="2cm"/> in your
page-layout, this may help


----- Original Message -----
From: "Hahn Kurt (CHA)" <ku...@etat.ge.ch>
To: <fo...@xml.apache.org>
Sent: Thursday, August 15, 2002 10:13 AM
Subject: xsl-region-after doesn't get displayed


> Hi,
> I'm trying to display a footer on the first page of my document, and it
just
> won't get displayed. Maybe someone can see what's wrong?
>
>  <fo:page-sequence master-reference="premier">
>  <fo:static-content flow-name="xsl-region-before">
>   <fo:block line-height="14pt" font-family="sans-serif" font-size="12pt"
> text-align="center">REPUBLIQUE ET CANTON DE GENEVE</fo:block>
>   <fo:block line-height="40pt" space-before="15pt" />
>  <fo:block text-align="center" break-before="line">
>   <fo:external-graphic width="auto" height="2.25cm"
>
src="D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\images\ecussonRVB.j
> pg" />
>   </fo:block>
>   <fo:block line-height="40pt" space-before="15pt" />
>   <fo:block font-size="10pt" font-weight="normal" font-family="sans-serif"
> font-style="normal" text-align="center" break-before="line"
> line-height="18pt">55e législature</fo:block>
>   <fo:block font-size="10pt" font-weight="normal" font-family="sans-serif"
> font-style="normal" text-align="center" break-before="line"
> line-height="18pt">1re année</fo:block>
>   </fo:static-content>
>  <fo:static-content flow-name="xsl-region-after">
> <!-- *********************************
> This part isn't displayed. Why?
> **************************
> -->
>  <fo:block font-family="sans-serif" font-size="8pt">
>   text for testing purposes
>   <fo:page-number />
>   </fo:block>
>   </fo:static-content>
>  <fo:flow flow-name="xsl-region-body">
>   <fo:block font-size="20pt" font-weight
> ......
>
>
> And this is the page-layout:
>
> <fo:layout-master-set>
>      <fo:simple-page-master master-name="premier"
>                   page-height="29.7cm"
>                   page-width="21cm"
>                   margin-top="3cm"
>                   margin-bottom="4.5cm"
>                   margin-left="2.5cm"
>                   margin-right="2.5cm">
>        <fo:region-body margin-top="6cm" margin-bottom="1cm"/>
>        <fo:region-before extent="6cm"/>
>      </fo:simple-page-master>
> </fo:layout-master-set>


Re: xsl-region-after doesn't get displayed

Posted by m....@gmx.de.
> Hi,
> I'm trying to display a footer on the first page of my document, and it 
> just
> won't get displayed. Maybe someone can see what's wrong? 
> 
>  <fo:page-sequence master-reference="premier">
>  <fo:static-content flow-name="xsl-region-before">
>   <fo:block line-height="14pt" font-family="sans-serif" 
> font-size="12pt"
> text-align="center">REPUBLIQUE ET CANTON DE GENEVE</fo:block> 
>   <fo:block line-height="40pt" space-before="15pt" /> 
>  <fo:block text-align="center" break-before="line">
>   <fo:external-graphic width="auto" height="2.25cm"
> src="D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\images\ecusso
> nRVB.j
> pg" /> 
>   </fo:block>
>   <fo:block line-height="40pt" space-before="15pt" /> 
>   <fo:block font-size="10pt" font-weight="normal" 
> font-family="sans-serif"
> font-style="normal" text-align="center" break-before="line"
> line-height="18pt">55e législature</fo:block> 
>   <fo:block font-size="10pt" font-weight="normal" 
> font-family="sans-serif"
> font-style="normal" text-align="center" break-before="line"
> line-height="18pt">1re année</fo:block> 
>   </fo:static-content>
>  <fo:static-content flow-name="xsl-region-after">
> <!-- *********************************
> This part isn't displayed. Why?
> **************************
> -->
>  <fo:block font-family="sans-serif" font-size="8pt">
>   text for testing purposes
>   <fo:page-number /> 
>   </fo:block>
>   </fo:static-content>
>  <fo:flow flow-name="xsl-region-body">
>   <fo:block font-size="20pt" font-weight
> ......
> 
> 
> And this is the page-layout:
> 
> <fo:layout-master-set>
>      <fo:simple-page-master master-name="premier"
>                   page-height="29.7cm" 
>                   page-width="21cm"
>                   margin-top="3cm" 
>                   margin-bottom="4.5cm" 
>                   margin-left="2.5cm" 
>                   margin-right="2.5cm">
>        <fo:region-body margin-top="6cm" margin-bottom="1cm"/>
>        <fo:region-before extent="6cm"/>
>      </fo:simple-page-master>
> </fo:layout-master-set>
> 

You have called the static contend which isn't displayed "xsl-region-after".
You have to specify in the simple-page-master which static contends should
be displayed like you did it with the region-body and with the region-before.
I think your code should look like this:

> <fo:layout-master-set>
>      <fo:simple-page-master master-name="premier"
>                   page-height="29.7cm" 
>                   page-width="21cm"
>                   margin-top="3cm" 
>                   margin-bottom="4.5cm" 
>                   margin-left="2.5cm" 
>                   margin-right="2.5cm">
>        <fo:region-body margin-top="6cm" margin-bottom="1cm"/>
>        <fo:region-before extent="6cm"/>

          <fo:region-after region-name="xsl-region-after"/>

>      </fo:simple-page-master>
> </fo:layout-master-set>


Hope this helps

-- 

Markus Schäffler
------------------------------------------------------

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net