Hi Andrea,

which version of fop you're using? In version 0.19.0 text wrapping in table cells 
works fine for me.
Please have a look at my mail regarding cell alignment I sent yesterday (I attached a 
copy to this mail).
If you execute the example you should see the correct text wrapping in the table.

Unfortunately 'til now no one had an answer to my question.

Regards,
_______________________________________
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]


Hi all,

I've encountered difficulties using alignment within tables rows.
I attached a modified table.fo example to point out the problem.

The text in the second table row is to long for the defined column width, so it is 
wrapped correctly. Now I want the text of the whole row aligned to the bottom of the 
row, but instead all other cells show the text aligned to the cells top.

Is it possible to align the the row text completely to the bottom of the cells?

_______________________________________
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]


<?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">
    <fo:table border-collapse="separate">
      <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" border-style="solid" 
background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>nice nice nice nice nice nice nice 
nice</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
          <fo:table-cell border-width="0.5mm" border-style="solid" 
background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>
_______________________________________
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]

-----Ursprüngliche Nachricht-----
Von: Greiner, Andrea [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. Juni 2001 11:11
An: [EMAIL PROTECTED]
Betreff: line-break in table-cells


        Dear all,
        I  need help quickly!

        What has happened to fop?

        I have the following problems with the new versions: When text will
be inserted into a table-cell and the text is longer than the corresponding
column-width of the table-cell, the text floats over all following
neighbor-cells. In older versions there were a line-breaks and the whole
text was inserted into the table-cell without over boarding.

        What do I have to do to manage this problem? 
      
      Looking forward to an answer
      Andrea Greiner

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to