CVS: jfor/samples/cocoon/tests/tables 004-number-rows-spanned.fo.xml,NONE,1.1
Peter Herweg <[email protected]> Sun, 29 Jun 2003 15:15:39 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/tables
In directory sc8-pr-cvs1:/tmp/cvs-serv10826
Added Files:
004-number-rows-spanned.fo.xml
Log Message:
initial checkin of number-rows-spanned example
--- NEW FILE: 004-number-rows-spanned.fo.xml ---
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:html="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="0.3cm" margin-top="0.1cm" page-width="21cm" page-height="29.7cm" master-name="first">
<fo:region-body margin-top="2.0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<fo:block>Start of test document</fo:block>
<fo:block font-weight="bold">This test illustrates the support of number-rows-spanned attribute in table-cell tags.</fo:block>
<fo:block>Contributed by Peter Herweg.</fo:block>
<fo:block space-before="5pt" >The following table contains 3 columns. The first column contains Cell A (it's 4 rows high). The second column contains Cells B and C (each 2 rows high). The third column contains Cells D, E, F and G (each one row high).</fo:block>
<fo:block space-after="5pt">Cells A, B and D have background color red, grenn and blue and a black border (1pt width).</fo:block>
<fo:table text-align="center" padding="0pt">
<fo:table-column column-width="50mm"/>
<fo:table-column column-width="50mm"/>
<fo:table-column column-width="50mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="1pt" number-rows-spanned="4" background-color="#FF0000" padding="0pt">
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell A</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" border-width="1pt" number-rows-spanned="2" background-color="#00FF00" padding="0pt">
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell B</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" border-width="1pt" background-color="#0000FF" padding="0pt" >
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell D</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding="0pt">
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell E</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-rows-spanned="2" padding="0pt" >
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell C</fo:block>
</fo:table-cell>
<fo:table-cell padding="0pt" >
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell F</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding="0pt" >
<fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell G</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>End of test document</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01