Hi,

I'm currently using fop to produce pdf after a transformation
from xhtml to xsl:fo with an XSLT.
Well, I have a problem with even pages. I don't get any footer
nor header. There is no difference between the odd and the
even pages for the static content in the header/footer.
Here is the log:

[DEBUG]: Input mode:
[DEBUG]: FO
[DEBUG]: fo input file: docs\result.xml
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: toto.pdf
[DEBUG]: OPTIONS
[DEBUG]: no user configuration file is used [default]
[DEBUG]: debug mode on
[DEBUG]: dump configuration
[DEBUG]: quiet mode on
[DEBUG]: base directory: file:/f:/Temp/Fop-0.20.3rc/docs/
[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[INFO]: [1]
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: Some static content could not fit in the area.
[WARN]: Some static content could not fit in the area.
[INFO]: [2]
[WARN]: table-layout=auto is not supported, using fixed!
[WARN]: table-layout=auto is not supported, using fixed!
[INFO]: [3]
[WARN]: Some static content could not fit in the area.
[WARN]: Some static content could not fit in the area.
[INFO]: [4]
[INFO]: [5]
[WARN]: Some static content could not fit in the area.
[WARN]: Some static content could not fit in the area.
[INFO]: [6]
[INFO]: [7]
[WARN]: Some static content could not fit in the area.
[WARN]: Some static content could not fit in the area.
[DEBUG]: Last page-sequence produced 7 pages.
[INFO]: Parsing of document complete, stopping renderer
[DEBUG]: Initial heap size: 638Kb
[DEBUG]: Current heap size: 1481Kb
[DEBUG]: Total memory used: 843Kb
[DEBUG]:   Memory use is indicative; no GC was performed
[DEBUG]:   These figures should not be used comparatively
[DEBUG]: Total time used: 3646ms
[DEBUG]: Pages rendererd: 7
[DEBUG]: Avg render time: 520ms/page

Can you help?

Thanks.

Bruno, France
<?xml version="1.0" encoding="ISO-8859-1" ?>
<fo:root xmlns:html="http://www.w3.org/1999/xhtml"; xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master page-width="8.5in" page-height="11in" master-name="BodyPage">
      <fo:region-body margin-top="15mm" margin-right="20mm" margin-bottom="15mm" margin-left="20mm"/>
      <fo:region-before extent="13mm" display-align="after"/>
      <fo:region-after extent="13mm" display-align="before"/>
    </fo:simple-page-master>
    <fo:simple-page-master page-width="8.5in" page-height="11in" master-name="CoverPage">
      <fo:region-body margin-top="15mm" margin-right="20mm" margin-bottom="15mm" margin-left="20mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="BodyPage">
    <fo:title/>
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center" font-size="small">

        <fo:block text-align="justify" text-indent="1em" space-before="0.6em" space-after="0.6em">
          <fo:block font-size="10px">COUCOU GOUNY

            <fo:page-number/>/
            <fo:page-number-citation ref-id="endofdoc"/>
          </fo:block>
        </fo:block>

      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="small">

        <fo:block text-align="justify" text-indent="1em" space-before="0.6em" space-after="0.6em">
          <fo:block font-size="10px">FIN DU
GOUNY!!!
            <fo:page-number/>/
            <fo:page-number-citation ref-id="endofdoc"/>
          </fo:block>
        </fo:block>

      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">








<!---->
      <fo:table width="100%">
        <fo:table-column number-columns-repeated="1" text-align="start"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="center">
              <fo:block>

                <fo:block start-indent="5mm" end-indent="5mm">
                  <fo:external-graphic src="essai_files/javalogo52x88.gif" display-align="center"/>
                  <fo:block/>

                </fo:block>

              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>


<!---->
      <fo:table width="100%">
        <fo:table-column number-columns-repeated="2" text-align="start"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1">
              <fo:block>__LIBALE__
                <fo:block/>
 __NOVOALE__ __NOMRUALE__
                <fo:block/>
 __BP__ __BPALE__
                <fo:block/>
 __CDPALE__ __LIBPOSALE__
              </fo:block>
            </fo:table-cell>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="right">
              <fo:block>Le
__JJ__/__MM__/__AAAA__</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1">
              <fo:block>
                <fo:block/>
 Tel : __TELALE__
              </fo:block>
            </fo:table-cell>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="left">
              <fo:block>
                <fo:block/>
 __ENSEIGNE__
                <fo:block/>
 A l'attention de __CIVICORRES__ __CORRES__
                <fo:block/>
 __CPLADRET1__
                <fo:block/>
 __CPLADRET2__
                <fo:block/>
 __NOVOET__ __TYPVOET__ __LIBVOET__
                <fo:block/>
 __DISPEC__
                <fo:block/>
 __CDPOSET__ __LIBPOSET__
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>


      <fo:block start-indent="5mm" end-indent="5mm">
        <fo:block font-size="10px">
          <fo:block/>
__AGENT__
          <fo:block/>
__CIVIAGENT__ __CORRALE__
          <fo:block/>
Tel : __TELCORR__ Poste : __POSTTEL__
          <fo:block/>
Fax : __FAXALE__
          <fo:block/>

          <fo:block/>
Objet : Recrutement
          <fo:block/>

          <fo:block/>

          <fo:block/>

        </fo:block>
      </fo:block>

<!---->
      <fo:table width="100%">
        <fo:table-column number-columns-repeated="2" text-align="start"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="left">
              <fo:block>__CIVICORRESLG__,</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>


      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>

      <fo:block start-indent="5mm" end-indent="5mm">
        <fo:block font-size="10px">
          <fo:block/>

          <fo:block/>
Vous avez confi&#233; &#224; l'ANPE le recrutement de :
          <fo:block/>
__INTOFA__
          <fo:block/>
et je vous en remercie.
          <fo:block/>
Je serai votre interlocuteur pour ce recrutement.
          <fo:block/>

          <fo:block/>
Je vous adresse le descriptif de votre offre d'emploi
r&#233;f&#233;renc&#233;e sous le num&#233;ro __NUMOFRA__. Si vous
souhaitez apporter une pr&#233;cision ou une modification,
n'h&#233;sitez pas &#224; me contacter.
          <fo:block/>

          <fo:block/>
Comme convenu, je diffuse imm&#233;diatement votre offre d'emploi
avec vos coordonn&#233;es par les moyens adapt&#233;s (affichage,
36 14 ANPE, ...). Vous serez contact&#233;__GENRE__ directement par
les candidats int&#233;ress&#233;s.
          <fo:block/>

          <fo:block/>
Je vous t&#233;l&#233;phonerai le __DATECTT__ pour faire le point.
Merci de bien vouloir m'informer d&#232;s que vous aurez retenu un
candidat.
          <fo:block/>

          <fo:block/>
Je vous prie d'agr&#233;er, __CIVICORRESLG__, mes sinc&#232;res
salutations.
          <fo:block/>

          <fo:block/>

          <fo:block/>

        </fo:block>
      </fo:block>

<!---->
      <fo:table width="100%">
        <fo:table-column number-columns-repeated="2" text-align="start"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="left">
              <fo:block>__CIVIAGENT__ __CORRALE__
                <fo:block/>
 __CONSEILLER__
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>


      <fo:block start-indent="5mm" end-indent="5mm">
        <fo:block font-size="10px">


          <fo:block/>

          <fo:block/>
 Retrouvez tous les services de l'ANPE
        </fo:block>
      </fo:block>

<!---->
      <fo:table width="100%">
        <fo:table-column number-columns-repeated="2" text-align="start"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell border-style="none" border-width="1pt" padding-start="0.3em" padding-end="2pt" padding-before="2pt" number-columns-spanned="1" number-rows-spanned="1" text-align="left">
              <fo:block>sur le 3614 ANPE (0,06 Euros la
minute en m&#233;tropole)
                <fo:block/>
 ou sur internet www.anpe.fr
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>




      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>



      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>



      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>



      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>



      <fo:block font-size="10px">
        <fo:block break-before="page"/>
      </fo:block>

      <fo:block id="endofdoc"/>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Reply via email to