You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/05/30 11:01:32 UTC

cvs commit: xml-fop/test/layoutengine/testcases markers8.xml markers7.xml markers9.xml

jeremias    2005/05/30 02:01:32

  Added:       test/layoutengine/testcases markers8.xml markers7.xml
                        markers9.xml
  Log:
  More test cases for markers.
  
  Revision  Changes    Path
  1.1                  xml-fop/test/layoutengine/testcases/markers8.xml
  
  Index: markers8.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
    Copyright 2005 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  <!-- $Id: markers8.xml,v 1.1 2005/05/30 09:01:32 jeremias Exp $ -->
  <testcase>
    <info>
      <p>
        This test checks markers on broken tables.
      </p>
    </info>
    <fo>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
        <fo:layout-master-set>
          <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
            <fo:region-body margin="0.5in 0"/>
            <fo:region-before extent="0.5in"/>
            <fo:region-after extent="0.5in"/>
          </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-including-carryover"/>
            </fo:block>
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table color="black">
              <fo:marker marker-class-name="test">table1</fo:marker>
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
            <fo:table color="red">
              <fo:marker marker-class-name="test">table2</fo:marker>
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
            <fo:table color="blue">
              <fo:marker marker-class-name="test">table3</fo:marker>
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell column-number="2">
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
      </fo:root>
    </fo>
    <checks>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'table1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'table1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'table1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'table1')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'table1')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'table2')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'table2')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'table1')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'table2')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'table3')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'table3')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'table2')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'table3')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'table3')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'table3')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'table3')"/>
    </checks>
  </testcase>
  
  
  
  1.1                  xml-fop/test/layoutengine/testcases/markers7.xml
  
  Index: markers7.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
    Copyright 2005 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  <!-- $Id: markers7.xml,v 1.1 2005/05/30 09:01:32 jeremias Exp $ -->
  <testcase>
    <info>
      <p>
        This test checks if all FOs at least add markers (not that they do it right).
      </p>
      <p>
        TODO: Add checks for the rest of the marker-enabled FOs (table-caption etc.)
      </p>
    </info>
    <fo>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
        <fo:layout-master-set>
          <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
            <fo:region-body margin="0.5in 0"/>
            <fo:region-before extent="0.5in"/>
            <fo:region-after extent="0.5in"/>
          </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:marker marker-class-name="test">fo:flow</fo:marker>
            <fo:block>blah</fo:block>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:block>
              <fo:marker marker-class-name="test">fo:block</fo:marker>blah</fo:block>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:block-container>
              <fo:marker marker-class-name="test">fo:block-container</fo:marker>
              <fo:block>blah</fo:block>
            </fo:block-container>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table>
              <fo:marker marker-class-name="test">fo:table</fo:marker>
              <fo:table-body>
                <fo:table-cell>
                  <fo:block>blah</fo:block>
                </fo:table-cell>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table>
              <fo:table-body>
                <fo:marker marker-class-name="test">fo:table-body</fo:marker>
                <fo:table-cell>
                  <fo:block>blah</fo:block>
                </fo:table-cell>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table>
              <fo:table-header>
                <fo:marker marker-class-name="test">fo:table-header</fo:marker>
                <fo:table-cell>
                  <fo:block>header-blah</fo:block>
                </fo:table-cell>
              </fo:table-header>
              <fo:table-body>
                <fo:table-cell>
                  <fo:block>blah</fo:block>
                </fo:table-cell>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table>
              <fo:table-footer>
                <fo:marker marker-class-name="test">fo:table-footer</fo:marker>
                <fo:table-cell>
                  <fo:block>footer-blah</fo:block>
                </fo:table-cell>
              </fo:table-footer>
              <fo:table-body>
                <fo:table-cell>
                  <fo:block>blah</fo:block>
                </fo:table-cell>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table>
              <fo:table-body>
                <fo:table-cell>
                  <fo:marker marker-class-name="test">fo:table-cell</fo:marker>
                  <fo:block>blah</fo:block>
                </fo:table-cell>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:list-block>
              <fo:marker marker-class-name="test">fo:list-block</fo:marker>
              <fo:list-item>
                <fo:list-item-label>
                  <fo:block>label-blah</fo:block>
                </fo:list-item-label>
                <fo:list-item-body>
                  <fo:block>body-blah</fo:block>
                </fo:list-item-body>
              </fo:list-item>
            </fo:list-block>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:list-block>
              <fo:list-item>
                <fo:marker marker-class-name="test">fo:list-item</fo:marker>
                <fo:list-item-label>
                  <fo:block>label-blah</fo:block>
                </fo:list-item-label>
                <fo:list-item-body>
                  <fo:block>body-blah</fo:block>
                </fo:list-item-body>
              </fo:list-item>
            </fo:list-block>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:list-block>
              <fo:list-item>
                <fo:list-item-label>
                  <fo:marker marker-class-name="test">fo:list-item-label</fo:marker>
                  <fo:block>label-blah</fo:block>
                </fo:list-item-label>
                <fo:list-item-body>
                  <fo:block>body-blah</fo:block>
                </fo:list-item-body>
              </fo:list-item>
            </fo:list-block>
          </fo:flow>
        </fo:page-sequence>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:list-block>
              <fo:list-item>
                <fo:list-item-label>
                  <fo:block>label-blah</fo:block>
                </fo:list-item-label>
                <fo:list-item-body>
                  <fo:marker marker-class-name="test">fo:list-item-body</fo:marker>
                  <fo:block>body-blah</fo:block>
                </fo:list-item-body>
              </fo:list-item>
            </fo:list-block>
          </fo:flow>
        </fo:page-sequence>
      </fo:root>
    </fo>
    <checks>
      <!-- fo:flow -->
      <eval expected="fo:flow" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:flow" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:block -->
      <eval expected="fo:block" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:block" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:block-container -->
      <eval expected="fo:block-container" xpath="//pageViewport[3]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:block-container" xpath="//pageViewport[3]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:table -->
      <eval expected="fo:table" xpath="//pageViewport[4]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:table" xpath="//pageViewport[4]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:table-body -->
      <eval expected="fo:table-body" xpath="//pageViewport[5]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:table-body" xpath="//pageViewport[5]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:table-header -->
      <eval expected="fo:table-header" xpath="//pageViewport[6]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:table-header" xpath="//pageViewport[6]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:table-footer -->
      <eval expected="fo:table-footer" xpath="//pageViewport[7]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:table-footer" xpath="//pageViewport[7]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:table-cell -->
      <eval expected="fo:table-cell" xpath="//pageViewport[8]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:table-cell" xpath="//pageViewport[8]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:list-block -->
      <eval expected="fo:list-block" xpath="//pageViewport[9]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:list-block" xpath="//pageViewport[9]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
      <!-- fo:list-item -->
      <eval expected="fo:list-item" xpath="//pageViewport[10]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
      <eval expected="fo:list-item" xpath="//pageViewport[10]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
    </checks>
  </testcase>
  
  
  
  1.1                  xml-fop/test/layoutengine/testcases/markers9.xml
  
  Index: markers9.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
    Copyright 2005 The Apache Software Foundation
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
  <!-- $Id: markers9.xml,v 1.1 2005/05/30 09:01:32 jeremias Exp $ -->
  <testcase>
    <info>
      <p>
        This test checks markers on broken table-bodies.
      </p>
    </info>
    <fo>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
        <fo:layout-master-set>
          <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
            <fo:region-body margin="0.5in 0"/>
            <fo:region-before extent="0.5in"/>
            <fo:region-after extent="0.5in"/>
          </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="normal" white-space-collapse="true">
          <fo:static-content flow-name="xsl-region-before">
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-including-carryover"/>
            </fo:block>
            <fo:block background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after">
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
            </fo:block>
            <fo:block text-align="end" background-color="yellow">
              <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
            </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body">
            <fo:table color="black">
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:marker marker-class-name="test">body1</fo:marker>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
            <fo:table color="red">
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:marker marker-class-name="test">body2</fo:marker>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
            <fo:table color="blue">
              <fo:table-column number-columns-repeated="2"/>
              <fo:table-body>
                <fo:marker marker-class-name="test">body3</fo:marker>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                  <fo:table-cell column-number="2">
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
              <fo:table-body color="cyan">
                <fo:marker marker-class-name="test">body4</fo:marker>
                <fo:table-row>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                    <fo:block>blah</fo:block>
                  </fo:table-cell>
                </fo:table-row>
              </fo:table-body>
            </fo:table>
          </fo:flow>
        </fo:page-sequence>
      </fo:root>
    </fo>
    <checks>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'body1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'body1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'body1')"/>
      <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'body1')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'body1')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'body2')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'body2')"/>
      <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'body1')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'body2')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'body3')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'body3')"/>
      <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'body2')"/>
  
      <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'body3')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'body4')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'body4')"/>
      <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'body4')"/>
    </checks>
  </testcase>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org