CVS: jfor/samples/cocoon/tests/simple-tests header-footer.fo.xml,NONE,1.1

Bertrand Delacretaz <[email protected]> Sun, 14 Jul 2002 23:44:27 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/simple-tests
In directory usw-pr-cvs1:/tmp/cvs-serv21333/samples/cocoon/tests/simple-tests

Added Files:
	header-footer.fo.xml 
Log Message:
footer code contributed by Andreas Lambert <[email protected]>

--- NEW FILE: header-footer.fo.xml ---
<?xml version="1.0" encoding="utf-8"?>

<!-- tell cocoon 1.8 to use jfor to convert this to RTF format -->
<?cocoon-format type="xslfo/rtf"?>

<!-- 
Test jfor header/footer generation
$Id: header-footer.fo.xml,v 1.1 2002/07/15 06:44:25 bdelacretaz Exp $
$Log: header-footer.fo.xml,v $
Revision 1.1  2002/07/15 06:44:25  bdelacretaz
footer code contributed by Andreas Lambert <[email protected]>

-->

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

  <fo:layout-master-set>
    <fo:simple-page-master 
        margin-right="0.5in" 
        margin-left="0.5in" 
        margin-bottom="0.5in" 
        margin-top="1in" 
        page-height="11in" 
        page-width="8.5in" 
        master-name="simple">
          <fo:region-body margin-top="3cm"/>
          <fo:region-before extent="3cm"/>
          <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-name="simple">
    <!-- This is the header -->
    <fo:static-content font="10pt" flow-name="xsl-region-before">
	    <fo:block font-weight="bold" font-style="italic" text-align="right" font-size="14pt">
            Page header text, 14 pt bold italic right-aligned
        </fo:block>
        <fo:block text-align="left">
            Second header line, left-aligned default font
        </fo:block>
    </fo:static-content>

    <fo:static-content flow-name="xsl-region-after">
	    <fo:block font-family="Courier" font-weight="bold" text-align="center" font-size="10pt">
            Page footer text, Courier 10 pt bold centered
        </fo:block>
        <fo:block text-align="left">
            Second footer line, left-aligned default font followed by page number: <fo:page-number/>
        </fo:block>
    </fo:static-content>
    
    <fo:flow flow-name="xsl-region-body">
        <fo:block font-weight="bold" font-size="24pt">
            jfor header/footer simple test
        </fo:block>
        <fo:block>
            This document contains two pages so that page numbering can be tested.
            <fo:block/>
            Each page contains a two-line header and a two-line footer.
            <fo:block/>
            Headers and footers are self-describing.
            <fo:block/>
            Note that footers are implemented since V0.7.1dev only.
        </fo:block>
        <fo:block font-weight="bold" font-size="24pt" break-before="page">
            Second page, should have number 2 in footer.
            <fo:block/>
            end of test.
        </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf