xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david <da...@catcode.com>
Subject Unwanted table border effect
Date Sun, 31 Dec 2000 07:48:56 GMT
I've taken part of the example table.fo file that puts borders
around every cell in the table. I added some text
to one of the cells in the middle of the table to force it to be
more than one line long.  Although the result may be
correct according to the spec, it's certainly not what most
ordinary mortals would expect or desire. Is there some way
to get all the bottom borders of the second row to line up?


============= begin ================================
<?xml version="1.0" encoding="utf-8"?>

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


  <!-- defines the layout master -->
  <fo:layout-master-set>
    <fo:simple-page-master master-name="first" 
                           page-height="29.7cm" 
                           page-width="21cm" 
                           margin-top="1cm" 
                           margin-bottom="2cm" 
                           margin-left="2.5cm" 
                           margin-right="2.5cm">
      <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>

  <!-- starts actual layout -->
  <fo:page-sequence master-name="first">

  <fo:flow flow-name="xsl-region-body">

      <!-- this defines a title level 2-->
      <fo:block font-size="16pt" 
            font-family="sans-serif" 
            space-after.optimum="15pt"
            text-align="center">
        A table with borders around the cells
      </fo:block>
    
    <!-- table start -->
    <fo:table>
      <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-width="0.5mm" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>dice
- plural of die.  "A piece of cheese/no bigger than a die/may serve to catch/a nibbling mie"
		  </fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>
    <!-- table end -->


    </fo:flow>
  </fo:page-sequence>
</fo:root>
============= end  ================================

---
J. David Eisenberg
http://catcode.com/


Mime
View raw message