CVS: jfor/samples/cocoon/tests/simple-tests header-footer-using-tables.fo.xml,NONE,1.1
Bertrand Delacretaz <[email protected]> Tue, 17 Sep 2002 05:24:09 -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-serv18381
Added Files:
header-footer-using-tables.fo.xml
Log Message:
header-footer-using-tables.fo.xml sample added
--- NEW FILE: header-footer-using-tables.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 using tables in headers and footers
$Id: header-footer-using-tables.fo.xml,v 1.1 2002/09/17 12:24:07 bdelacretaz Exp $
$Log: header-footer-using-tables.fo.xml,v $
Revision 1.1 2002/09/17 12:24:07 bdelacretaz
header-footer-using-tables.fo.xml sample added
-->
<!DOCTYPE test-tables [
<!ENTITY smallTable "
<fo:table
font-family='Helvetica'
font-size='10pt'
text-align='start'
border-style='none'
border-width='0pt'
space-before.optimum='5mm'
space-after.optimum='5mm'
>
<fo:table-column column-width='80mm'/>
<fo:table-column column-width='80mm'/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>First cell of header/footer table</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Second cell with page number: <fo:page-number/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
">
]>
<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" master-reference="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, should be followed by a table with
one line and two columns.
</fo:block>
&smallTable;
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block>This is followed by twice the same table as in header:</fo:block>
&smallTable;
&smallTable;
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-weight="bold" font-size="24pt">
jfor test: using tables in headers and footers
</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 tables in headers and footers are implemented since V0.7.2dev-b 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>
-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology!
Open Source & Linux Developers, register now for the AMD Developer
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab