<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Times Roman" font-size="10pt" text-align="justify">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="blank" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-blank" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-blank" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="simple1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before extent="12pt"/>
      <fo:region-after extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="left1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-left" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-left" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="right1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-right" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-right" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="first1" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="1in">
      <fo:region-body margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-first" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-first" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="simple2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before extent="12pt"/>
      <fo:region-after extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="left2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="10pc" margin-right="1in">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-left" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-left" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="right2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="10pc">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-right" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-right" extent="12pt"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="first2" page-width="8.5in" page-height="11in" margin-top="1in" margin-bottom="1in" margin-left="1in" margin-right="1in">
      <fo:region-body column-count="1" margin-bottom="24pt" margin-top="24pt"/>
      <fo:region-before region-name="xsl-region-before-first" extent="12pt"/>
      <fo:region-after region-name="xsl-region-after-first" extent="12pt"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="titlepage1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="first1"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="oneside1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="simple1"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="twoside1">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/>
        <fo:conditional-page-master-reference master-name="right1" odd-or-even="odd"/>
        <fo:conditional-page-master-reference master-name="left1" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="titlepage2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="first2"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="oneside2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="simple2"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
    <fo:page-sequence-master master-name="twoside2">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-name="blank" blank-or-not-blank="blank"/>
        <fo:conditional-page-master-reference master-name="right2" odd-or-even="odd"/>
        <fo:conditional-page-master-reference master-name="left2" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  <fo:page-sequence id="id2889273" hyphenate="true" master-name="titlepage1" language="en">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block font-family="Helvetica" font-weight="bold" font-size="24.8832pt" text-align="center" space-before="18.6624pt">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Book Test Document Title</fo:block>
        </fo:block>
        <fo:block font-family="Helvetica" font-weight="bold" font-size="20.736pt" text-align="center" space-before="15.552pt">Book Subtitle</fo:block>
        <fo:block font-family="Helvetica" font-weight="bold" font-size="12pt" text-align="center" space-before="2in">
          <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" text-align="center" space-before="10.8pt" keep-with-next="always">Norman Walsh</fo:block>
        </fo:block>
        <fo:block break-after="page"/>
        <fo:block font-size="14.4pt" font-weight="bold" font-family="Helvetica">
          <fo:block>Bookinfo Test Document Title: Book Subtitle</fo:block>
        </fo:block>
        <fo:block font-size="10pt">
          <fo:block>by Norman Walsh</fo:block>
        </fo:block>
        <fo:block break-after="page"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence hyphenate="true" format="i" master-name="titlepage1" language="en">
    <fo:flow flow-name="xsl-region-body">
      <fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em">
        <fo:block>
          <fo:block space-after="1em" margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">Table of Contents</fo:block>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always"> Foreword</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="preface"><fo:page-number-citation ref-id="preface"/></fo:basic-link></fo:inline>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always">1 XRef Tests</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="xreftest"><fo:page-number-citation ref-id="xreftest"/></fo:basic-link></fo:inline>
        </fo:block>
        <fo:block start-indent="2pc">
          <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
            <fo:inline keep-with-next.within-line="always"> First sect1</fo:inline>
            <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="id2781476"><fo:page-number-citation ref-id="id2781476"/></fo:basic-link></fo:inline>
          </fo:block>
          <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
            <fo:inline keep-with-next.within-line="always"> Second sect1</fo:inline>
            <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="id2781520"><fo:page-number-citation ref-id="id2781520"/></fo:basic-link></fo:inline>
          </fo:block>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always">2 Second Chapter</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="chapter"><fo:page-number-citation ref-id="chapter"/></fo:basic-link></fo:inline>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always">3 Third Chapter</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="id2781577"><fo:page-number-citation ref-id="id2781577"/></fo:basic-link></fo:inline>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always">A First Appendix</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="appendix"><fo:page-number-citation ref-id="appendix"/></fo:basic-link></fo:inline>
        </fo:block>
        <fo:block text-align-last="justify" end-indent="2pc" last-line-end-indent="-2pc">
          <fo:inline keep-with-next.within-line="always">B Second Appendix</fo:inline>
          <fo:inline keep-together.within-line="always"> <fo:leader leader-pattern="dots" keep-with-next.within-line="always"/> <fo:basic-link internal-destination="id2783921"><fo:page-number-citation ref-id="id2783921"/></fo:basic-link></fo:inline>
        </fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="dedication" hyphenate="true" format="i" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-family="Helvetica" font-weight="bold">
          <fo:block keep-with-next.within-column="always" hyphenate="false">First Dedication</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Just a test.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="id2824281" hyphenate="true" format="i" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-family="Helvetica" font-weight="bold">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Dedication</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">Just a test.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="preface" hyphenate="true" format="i" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-family="Helvetica" font-weight="bold">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Foreword</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This is a test paragraph. (<fo:basic-link internal-destination="chapter">chapter</fo:basic-link>)</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="xreftest" hyphenate="true" master-name="oneside1" language="en" initial-page-number="1">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block font-size="10pt">Chapter 1. XRef Tests</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Chapter 1. XRef Tests</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
        <fo:basic-link internal-destination="dedication">Dedication</fo:basic-link>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
        <fo:basic-link internal-destination="preface">Preface</fo:basic-link>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
        <fo:basic-link internal-destination="chapter">Chapter</fo:basic-link>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
        <fo:basic-link internal-destination="appendix">Appendix</fo:basic-link>
      </fo:block>
      <fo:block id="id2781476">
        <fo:block>
          <fo:block margin-left="-4pc" font-family="Helvetica">
            <fo:block keep-with-next.within-column="always">
              <fo:block font-size="16pt" font-weight="bold" font-family="Helvetica" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">First sect1</fo:block>
            </fo:block>
          </fo:block>
        </fo:block>
        <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">...</fo:block>
      </fo:block>
      <fo:block id="id2781520">
        <fo:block>
          <fo:block margin-left="-4pc" font-family="Helvetica">
            <fo:block keep-with-next.within-column="always">
              <fo:block font-size="16pt" font-weight="bold" font-family="Helvetica" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">Second sect1</fo:block>
            </fo:block>
          </fo:block>
        </fo:block>
        <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">...</fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="chapter" hyphenate="true" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block font-size="10pt">Chapter 2. Second Chapter</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Chapter 2. Second Chapter</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This is a test paragraph.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="id2781577" hyphenate="true" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block font-size="10pt">Chapter 3. Third Chapter</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Chapter 3. Third Chapter</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This is a test paragraph.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="appendix" hyphenate="true" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block font-size="10pt">Appendix A. First Appendix</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Appendix A. First Appendix</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This is just a test.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.
This makes the appendix long. This makes the appendix long.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence id="id2783921" hyphenate="true" master-name="oneside1" language="en">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="center">
        <fo:block font-size="10pt">Appendix B. Second Appendix</fo:block>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
      <fo:block text-align="center" font-size="10pt">
        <fo:page-number/>
      </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
        <fo:block margin-left="-4pc" font-size="17.28pt" font-weight="bold" font-family="Helvetica">
          <fo:block keep-with-next.within-column="always" hyphenate="false">Appendix B. Second Appendix</fo:block>
        </fo:block>
      </fo:block>
      <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">This is just a test.</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>
