xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos GarcĂ­a <intmarcos.gar...@gmail.com>
Subject Re: WordML continuous section break
Date Fri, 15 Jul 2011 07:26:54 GMT
Thaks for your quick reply Andreas,

I have created a reduced version of the original WordML document with the
same continous section break, and obtained the same results (it breaks it in
two different pages).

Here you have the FO I'm currently using.
It's long.
ready?

==========================================================

<?xml version="1.0" encoding="utf-8"?>
<fo:root font-family="TimesNewRoman">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="section1-first-
page" page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt"/>
      <fo:region-before extent="11in" region-name="first-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="first-page-footer"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="section1-odd-page"
page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt"/>
      <fo:region-before extent="11in" region-name="odd-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="odd-page-footer"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="section1-even-page"
page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt"/>
      <fo:region-before extent="11in" region-name="even-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="even-page-footer"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="section1-page-sequence-master">
      <fo:single-page-master-reference
master-reference="section1-first-page"/>
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference
master-reference="section1-odd-page" odd-or-even="odd"/>
        <fo:conditional-page-master-reference
master-reference="section1-even-page" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:simple-page-master master-name="section2-first-page"
page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt" column-count="2" column-gap="35.4pt"/>
      <fo:region-before extent="11in" region-name="first-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="first-page-footer"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="section2-odd-page"
page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt" column-count="2" column-gap="35.4pt"/>
      <fo:region-before extent="11in" region-name="odd-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="odd-page-footer"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="section2-even-page"
page-width="595.3pt" page-height="841.9pt" margin-top="42.55pt"
margin-bottom="42.55pt" margin-right="70.9pt" margin-left="70.9pt">
      <fo:region-body margin-top="62.75pt"
margin-bottom="38.63636363636363pt" column-count="2" column-gap="35.4pt"/>
      <fo:region-before extent="11in" region-name="even-page-header"/>
      <fo:region-after display-align="after" extent="11in"
region-name="even-page-footer"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="section2-page-sequence-master">
      <fo:single-page-master-reference
master-reference="section2-first-page"/>
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference
master-reference="section2-odd-page" odd-or-even="odd"/>
        <fo:conditional-page-master-reference
master-reference="section2-even-page" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  <fo:declarations>
    ...
  </fo:declarations>
  <fo:bookmark-tree/>
  <fo:page-sequence master-reference="section1-page-sequence-master"
format="1">
    <fo:static-content flow-name="first-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="first-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="first-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="first-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="odd-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="odd-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="even-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="even-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="xsl-footnote-separator">
      <fo:block>
        <fo:leader color="gray" rule-style="solid" rule-thickness="0.5pt"
leader-length="144pt" leader-pattern="rule"/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block role="Div" widows="2" orphans="2" font-size="10pt"
line-height="1.147" white-space-collapse="true">
        <fo:marker marker-class-name="first-page-header"/>
        <fo:marker marker-class-name="first-page-footer"/>
        <fo:marker marker-class-name="odd-page-header"/>
        <fo:marker marker-class-name="odd-page-footer"/>
        <fo:marker marker-class-name="even-page-header"/>
        <fo:marker marker-class-name="even-page-footer"/>
        <fo:block font-family="TimesNewRoman" font-size="12pt"
language="ES">
          <fo:inline>Paragraph1</fo:inline>
        </fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence master-reference="section2-page-sequence-master"
format="1">
    <fo:static-content flow-name="first-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="first-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="first-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="first-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="odd-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="odd-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="even-page-header">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-header"/>
    </fo:static-content>
    <fo:static-content flow-name="even-page-footer">
      <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-including-carryover"
retrieve-class-name="odd-page-footer"/>
    </fo:static-content>
    <fo:static-content flow-name="xsl-footnote-separator">
      <fo:block>
        <fo:leader color="gray" rule-style="solid" rule-thickness="0.5pt"
leader-length="144pt" leader-pattern="rule"/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block role="Div" widows="2" orphans="2" font-size="10pt"
line-height="1.147" white-space-collapse="true">
        <fo:marker marker-class-name="first-page-header"/>
        <fo:marker marker-class-name="first-page-footer"/>
        <fo:marker marker-class-name="odd-page-header"/>
        <fo:marker marker-class-name="odd-page-footer"/>
        <fo:marker marker-class-name="even-page-header"/>
        <fo:marker marker-class-name="even-page-footer"/>
        <fo:block font-family="TimesNewRoman" font-size="12pt"
language="ES">
          <fo:inline>Paragraph2</fo:inline>
        </fo:block>
      </fo:block>
      <fo:block id="last-block"/>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

============================================================

What am I doing wrong?
Thanks so much.

Mime
View raw message