<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:foa="http://fabio">
<!-- Produced by WH2FO 0.3.0 -->
  <xsl:import href="TableOfContentAtts.xsl"></xsl:import>
  <xsl:output method="xml" encoding="UTF-8"></xsl:output>
  <xsl:strip-space elements="row"></xsl:strip-space>
  <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set >
        <fo:simple-page-master page-width="595.3pt" page-height="841.9pt" master-name="Section1-even" margin-top="54.3pt" margin-bottom="54.3pt" margin-left="75.0pt" margin-right="75.0pt" >
          <fo:region-before extent="54.3pt" ></fo:region-before>
          <fo:region-after extent="54.3pt" region-name="ef1"></fo:region-after>
          <fo:region-body margin-top="54.3pt" margin-bottom="54.3pt" ></fo:region-body>
        </fo:simple-page-master>
        <fo:simple-page-master page-width="595.3pt" page-height="841.9pt" master-name="Section1-odd" margin-top="54.3pt" margin-bottom="54.3pt" margin-left="75.0pt" margin-right="75.0pt" >
          <fo:region-before extent="54.3pt" ></fo:region-before>
          <fo:region-after extent="54.3pt" region-name="f1"></fo:region-after>
          <fo:region-body margin-top="54.3pt" margin-bottom="54.3pt" ></fo:region-body>
        </fo:simple-page-master>
        <fo:page-sequence-master master-name="Section1-ps">
          <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference master-reference="Section1-odd" odd-or-even="odd"></fo:conditional-page-master-reference>
            <fo:conditional-page-master-reference master-reference="Section1-even" odd-or-even="even"></fo:conditional-page-master-reference>
          </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
      </fo:layout-master-set>
      <fox:outline internal-destination="_Toc513970160">
        <fox:label>
          Chapter 1. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970161">
        <fox:label>
          Introduction. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970162">
        <fox:label>
          Section 1.1. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970163">
        <fox:label>
          Section 1.2. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970164">
        <fox:label>
          Section 1.3. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970165">
        <fox:label>
          Chapter 2. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970166">
        <fox:label>
          Introduction. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970167">
        <fox:label>
          Section 2.1. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970168">
        <fox:label>
          Section 2.2. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970169">
        <fox:label>
          Chapter 3. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970170">
        <fox:label>
          Introduction. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970171">
        <fox:label>
          Section 3.1. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970172">
        <fox:label>
          Section 3.2. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970173">
        <fox:label>
          Section 3.3. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970174">
        <fox:label>
          Section 3.4. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970175">
        <fox:label>
          Section 3.5. 
        </fox:label>
      </fox:outline>
      <fox:outline internal-destination="_Toc513970176">
        <fox:label>
          Conclusions. 
        </fox:label>
      </fox:outline>
      <fo:page-sequence master-reference="Section1-ps">
        <fo:static-content flow-name="ef1">
          <xsl:apply-templates  select="document('TableOfContent.xml')/document/sectionFooter[@name='ef1']"></xsl:apply-templates>
        </fo:static-content>
        <fo:static-content flow-name="f1">
          <xsl:apply-templates  select="document('TableOfContent.xml')/document/sectionFooter[@name='f1']"></xsl:apply-templates>
        </fo:static-content>
        <fo:static-content flow-name="xsl-region-before"></fo:static-content>
        <fo:static-content flow-name="xsl-region-after"></fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <xsl:apply-templates  select="document('TableOfContent.xml')/document/section[1]"></xsl:apply-templates>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
  </xsl:template>
  <xsl:template match="paragraph[@class='Footer']" foa:class="block" foa:name="Footer" foa:group="paragraph">
    <fo:block foa:name="Footer" foa:group="paragraph" xsl:use-attribute-sets="Footer">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='Normal']" foa:class="block" foa:name="Normal" foa:group="paragraph">
    <fo:block foa:name="Normal" foa:group="paragraph" xsl:use-attribute-sets="Normal">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='Toc2']" foa:class="block" foa:name="Toc2" foa:group="paragraph">
    <fo:block foa:name="Toc2" foa:group="paragraph" xsl:use-attribute-sets="Toc2">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='Toc3']" foa:class="block" foa:name="Toc3" foa:group="paragraph">
    <fo:block foa:name="Toc3" foa:group="paragraph" xsl:use-attribute-sets="Toc3">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='Normal_1']" foa:class="block" foa:name="Normal_1" foa:group="paragraph">
    <fo:block foa:name="Normal_1" foa:group="paragraph" xsl:use-attribute-sets="Normal_1">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='BodyText']" foa:class="block" foa:name="BodyText" foa:group="paragraph">
    <fo:block foa:name="BodyText" foa:group="paragraph" xsl:use-attribute-sets="BodyText">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="paragraph[@class='Default']" foa:class="block" foa:name="Default" foa:group="paragraph">
    <fo:block foa:name="Default" foa:group="paragraph" xsl:use-attribute-sets="Default">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="link[@href]" foa:class="inline" foa:name="extlink" foa:group="ext-link">
    <fo:basic-link foa:name="extlink" foa:group="ext-link" external-destination="{@href}" xsl:use-attribute-sets="link">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:basic-link>
  </xsl:template>
  <xsl:template match="link[@dest]" foa:class="inline" foa:name="intlink" foa:type="int-link" foa:group="int-link">
    <fo:basic-link foa:name="intlink" foa:group="int-link" internal-destination="{@dest}" xsl:use-attribute-sets="link">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:basic-link>
  </xsl:template>
  <xsl:template match="emph[@class='link']" foa:class="inline" foa:name="link" foa:group="emphasis">
    <fo:inline foa:name="link" foa:group="emphasis" xsl:use-attribute-sets="link">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="emph[@class='Toc2_1']" foa:class="inline" foa:name="Toc2_1" foa:group="emphasis">
    <fo:inline foa:name="Toc2_1" foa:group="emphasis" xsl:use-attribute-sets="Toc2_1">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="emph[@class='Toc2_2']" foa:class="inline" foa:name="Toc2_2" foa:group="emphasis">
    <fo:inline foa:name="Toc2_2" foa:group="emphasis" xsl:use-attribute-sets="Toc2_2">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="emph[@class='Toc3_1']" foa:class="inline" foa:name="Toc3_1" foa:group="emphasis">
    <fo:inline foa:name="Toc3_1" foa:group="emphasis" xsl:use-attribute-sets="Toc3_1">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="emph[@class='Toc3_2']" foa:class="inline" foa:name="Toc3_2" foa:group="emphasis">
    <fo:inline foa:name="Toc3_2" foa:group="emphasis" xsl:use-attribute-sets="Toc3_2">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="cell[@class='Cell']" foa:class="table-cell" foa:name="null" foa:group="simple-table" foa:type="table-cell">
    <fo:table-cell foa:name="null" foa:group="simple-table" column-number="{position()}" xsl:use-attribute-sets="Cell">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:table-cell>
  </xsl:template>
  <xsl:template match="cell[@class='Cell_1']" foa:class="table-cell" foa:name="Table" foa:group="simple-table" foa:type="table-cell">
    <fo:table-cell foa:name="Table" foa:group="simple-table" column-number="{position()}" xsl:use-attribute-sets="Cell_1">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:table-cell>
  </xsl:template>
  <xsl:template match="header[@class='h2']" foa:class="block" foa:name="h2" foa:group="paragraph">
    <fo:block foa:name="h2" foa:group="paragraph" xsl:use-attribute-sets="h2">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="header[@class='h3']" foa:class="block" foa:name="h3" foa:group="paragraph">
    <fo:block foa:name="h3" foa:group="paragraph" xsl:use-attribute-sets="h3">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:block>
  </xsl:template>
  <xsl:template match="image" foa:class="inline" foa:name="Image" foa:group="image">
    <fo:external-graphic foa:name="Image" foa:group="image" src="{@src}" xsl:use-attribute-sets="Shape">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:external-graphic>
  </xsl:template>
  <xsl:template match="row[@class='Table']" foa:class="table-row" foa:name="Table" foa:group="simple-table" foa:type="table-row">
    <fo:table-row foa:name="Table" foa:group="simple-table" xsl:use-attribute-sets="Row">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:table-row>
  </xsl:template>
  <xsl:template match="reference" foa:class="inline" foa:name="intlink" foa:type="int-ref" foa:group="int-link">
    <fo:inline foa:name="reference" foa:group="int-link" id="{@id}" xsl:use-attribute-sets="Default">
      <xsl:apply-templates></xsl:apply-templates>
    </fo:inline>
  </xsl:template>
  <xsl:template match="table[@class='Table']" foa:class="table" foa:name="Table" foa:group="simple-table">
    <fo:table foa:name="Table" foa:group="simple-table" table-layout="fixed" width="0.0pt" xsl:use-attribute-sets="Table">
      <fo:table-column column-number="1" column-width="0.0pt" ></fo:table-column>
      <fo:table-body >
        <xsl:apply-templates></xsl:apply-templates>
      </fo:table-body>
    </fo:table>
  </xsl:template>
  <xsl:template match="pageNumber" foa:class="inline" foa:name="pageNumber"  foa:group="emphasis">
    <fo:page-number foa:name="pageNumber" foa:group="emphasis"></fo:page-number>
  </xsl:template>
</xsl:stylesheet>
