CVS: jfor/samples/cocoon/tests/tables 005-height.fo.xml,NONE,1.1

Peter Herweg <[email protected]> Thu, 03 Jul 2003 10:51:54 -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-serv16604/samples/cocoon/tests/tables

Added Files:
	005-height.fo.xml 
Log Message:
support for height attribute at table-row tag added

--- NEW FILE: 005-height.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 height attribute in table-row tags.</fo:block>
      <fo:block>Contributed by Peter Herweg.</fo:block>
            
      <fo:block space-before="5pt" >The following table contains 3 columns and 3 rows.</fo:block>
      <fo:block space-after="5pt">The height of the first row is 2cm, the height of the second row is 3cm and the height of the third row is 4cm</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 background-color="#FF0000" height="2cm">
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell A</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell B</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell C</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row background-color="#FF4444" height="3cm">
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell D</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell E</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <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 background-color="#FF8888" height="4cm">
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell G</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell H</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block color="#000000" text-align="left" font-family="Helvetica" font-size="8pt">Cell I</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