<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- This file makes part of an XSL Test Suite       -->
<!-- Simple page test: 4 pages with different number -->
<!-- of columns and different orientation            -->

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rx="http://www.renderx.com/XSL/Extensions">

  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:dcterms="http://purl.org/dc/terms/"
           xmlns:dc="http://purl.org/dc/elements/1.1/"
           xmlns:db="http://www.oasis-open.org/docbook/xml/4.2/">
     <rdf:Description rdf:about="http://xep.xattic.com/testsuite/features/columns.xml">
        <dc:title> Columns </dc:title>
        <dc:description>
          <db:para>
            Tests multi-column pages and reference-orientation on page regions.
          </db:para>
        </dc:description>
        <dc:date>2003-07-24</dc:date><dcterms:requires rdf:resource="http://xep.xattic.com/testsuite/features/macro.xsl"/>
    </rdf:Description>
  </rdf:RDF> 

<fo:layout-master-set>

<fo:simple-page-master master-name="page-1">
  <fo:region-body column-count="1" reference-orientation="0" margin="1in"/>
  <fo:region-after extent="0.9in"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="page-2">
  <fo:region-body column-count="2" reference-orientation="90" column-gap="0.5in" margin="1in"/>
  <fo:region-end extent="0.9in" reference-orientation="90"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="page-3">
  <fo:region-body column-count="3" reference-orientation="180" column-gap="0.3in" margin="1in"/>
  <fo:region-before extent="0.9in" reference-orientation="180"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="page-4">
 <fo:region-body column-count="4" reference-orientation="270" column-gap="0.25in" margin="1in"/>
 <fo:region-start extent="0.9in" reference-orientation="270"/>
</fo:simple-page-master>

</fo:layout-master-set>

  <!-- =============================================== -->
  <!-- Macros                                          -->
  <define-macro name="stellar-separator">
    <p text-align="center" color="black">
        <fo:leader leader-length.optimum="$arg" 
                   leader-pattern="rule"
                   rule-style="solid"
                   alignment-adjust="50%"
                   rule-thickness="0.5pt"/>
        <font font="16pt ZapfDingbats" color="#E00000">&#x274B;</font>
        <fo:leader leader-length.optimum="$arg" 
                   leader-pattern="rule"
                   rule-style="solid"
                   alignment-adjust="50%"
                   rule-thickness="0.5pt"/>
    </p>
  </define-macro>

  <!-- First page - single-column, portrait orientation -->
    <fo:page-sequence master-reference="page-1">
      <fo:static-content flow-name="xsl-region-after">
        <fo:block text-align="center" font="10pt Times">
         <fo:page-number/>
        </fo:block>
      </fo:static-content>
      <fo:static-content flow-name="xsl-footnote-separator">
        <fo:block text-align-last="justify" white-space-treatment="ignore">
          <fo:inline font="14pt ZapfDingbats" color="#C00000" alignment-baseline="central">&#x2704;</fo:inline>
          <fo:leader leader-pattern="dots" color="gray" font="10pt Times" alignment-baseline="central"/>
        </fo:block>
      </fo:static-content>


    <fo:flow flow-name="xsl-region-body">
    <fo:block font="bold 36pt Times" color="red"
       text-align="center" space-after="6pt">
       COLUMNS<footnote>The first page has one column, 
       the second has two columns and so forth...</footnote>
    </fo:block>

    <macro name="stellar-separator" arg="2.4in"/>

    <fo:block font="16pt Times" color="maroon"
       space-before="6pt" space-after="9pt"
       text-align="center" >
       <b>XSL-FO</b> COLUMNS FORMATTING<footnote>Simple 
       page test: 4 pages with different number of columns 
       and different orientation</footnote>
    </fo:block> 

    <fo:block padding-left="6pt" border-left="medium ridge #808080">

      <fo:block padding="6pt" background-color="#E0E0E0">

        <fo:wrapper text-align="justify" font="1pc Times">
          <fo:block><font font-size="3pc"
                   color="red">T</font>his is the first page of the document.
            Its first capital letter T has red color and is 3 picas high. 
          </fo:block>
          <repeat times="6">
            <fo:block space-before="9pt">
               The text on the page has single-column style, 
               portrait orientation, and one-inch side margins. 
               The font family is <code>Times</code>, text size equals 
               1 pica. The column has a vertical bar (medium-thickness
               gray ridge) at the left. The background color is light gray.
            </fo:block>
          </repeat>
        </fo:wrapper>
      </fo:block>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>

  <!-- Second page - two columns, landscape orientation -->

    <fo:page-sequence master-reference="page-2">
      <fo:static-content flow-name="xsl-region-end">
        <fo:block text-align="center" font="10pt Times">
         <fo:page-number/>
        </fo:block>
      </fo:static-content>
      <fo:static-content flow-name="xsl-footnote-separator">
        <fo:block text-align-last="justify">
          <fo:leader leader-pattern="use-content"
                     font="8pt ZapfDingbats" color="navy">&#x25B2;&#x25BC;</fo:leader>
        </fo:block>
      </fo:static-content>
    <fo:flow flow-name="xsl-region-body">

    <fo:block font="bold 24pt Times" color="#604020"
       text-align="center" space-after="6pt">COLUMNS</fo:block>

    <macro name="stellar-separator" arg="1.2in"/>

    <fo:block font="13pt Helvetica" color="red"
       space-before="6pt" space-after="9pt"
       text-align="center">
      <b>XSL-FO</b> COLUMNS FORMATTING<footnote>
      This page has landscape orientation</footnote></fo:block> 

    <fo:block padding="6pt" background-color="#FFE0C0" color="#604020">

      <fo:wrapper text-align="justify" font="11pt Helvetica">
        <fo:block><font font-size="3pc"
                 color="red">T</font>his is the second page of the document.
          Its first capital letter T has red color and is 3 picas high. 
        </fo:block>
        <repeat times="8">
          <fo:block space-before="9pt">
            This is the second page in the document.  
            It has two columns, landscape orientation, and one-inch 
            side margins. Column gap equals 0.5 inches, text block 
            inside columns is padded 6 pt from all edges. Column 
            background is maroon, text color is brown. The 
            font is <code>Helvetica</code>, 11 pt. 
          </fo:block>
        </repeat>
      </fo:wrapper>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>

  <!-- Third page - three columns, reversed portrait -->

    <fo:page-sequence master-reference="page-3">
      <fo:static-content flow-name="xsl-region-before">
        <fo:block text-align="center" font="10pt Times">
         <fo:page-number/>
        </fo:block>
      </fo:static-content>
      <fo:static-content flow-name="xsl-footnote-separator">
        <fo:block>
          <fo:leader leader-pattern="rule" leader-length="100%"
                     rule-thickness="0.5pt" color="#007044"/>
        </fo:block>
      </fo:static-content>
    <fo:flow flow-name="xsl-region-body">

    <fo:block font="bold 24pt Times" color="#007044"
       text-align="center" space-after="6pt">
      <u>Columns<footnote>The title is underlined.</footnote></u>
    </fo:block>


    <fo:block padding-left="6pt" border-left="thin solid #007044">

      <fo:block padding="6pt" background-color="#FFFDD5" color="#007044">
 
        <fo:wrapper text-align="start" font="10pt Courier">
          <fo:block><font font-size="3pc"
                   color="#007044">T</font>his is the third page of the document.
            Its first capital letter T is 3 picas high. 
          </fo:block>

          <repeat times="14">
            <fo:block space-before="9pt">
               This is the third page in the document. It has three columns,
               reversed portrait orientation, and 0.3 inch column gap. The font
               is <code>Courier</code>, 10 pt.
            </fo:block>
          </repeat>
        </fo:wrapper>
      </fo:block>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>

  <!-- Fourth page - four columns, reversed landscape -->

    <fo:page-sequence master-reference="page-4">
      <fo:static-content flow-name="xsl-region-start">
        <fo:block text-align="center" font="10pt Times">
         <fo:page-number/>
        </fo:block>
      </fo:static-content>
    <fo:flow flow-name="xsl-region-body">

    <fo:block font="bold 18pt Helvetica" color="white"
       text-align="center" space-after="6pt"
       background-color="red">COLUMNS</fo:block>

    <fo:block padding="6pt" background-color="#0069B3" color="#FFFFFF">

      <fo:wrapper text-align="start" font="10pt Helvetica">
        <fo:block><font font-size="3pc"
                 color="#FF0000">T</font>his is the fourth page of the document.
          Its first capital letter T has red color and is 3 picas high. 
        </fo:block>

        <repeat times="19">
          <fo:block space-before="9pt">
             This is the fourth page in the document. It has four columns,
             reversed landscape orientation, and 0.25 inch column gap. The font
             is <code>Helvetica</code>, 10 pt.
          </fo:block>
        </repeat>
      </fo:wrapper>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>

</fo:root>
