W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2008

Wrapping text within table row

From: el1986 <elin.lloyd@accountis.com>
Date: Mon, 14 Jul 2008 07:56:54 -0700 (PDT)
Message-ID: <18445715.post@talk.nabble.com>
To: www-xsl-fo@w3.org

I'm trying to display line items of an order/invoice, it all works fine if
the line items description isn't too long. However when it becomes too long
the description wraps which is what i want to happen but it seems to move
onto the whole descripion onto the next row.
So the first row contains the details of the 1st line item (with a blank
cell where the description should be), the 2nd line contains the description
in the correct column, the 3rd colum contains the details of the 2nd line
item (with a blank cell where the description should be), the 4th line
contains the description of the 2nd line item. So something like this:

Line No     Description     Value
1                                    10
               wrapped
               description
2                                    20
               wrapped 
               description2


So i want the description to start on the same row as the rest of the line
item details.
This is what i have for the cell.

<fo:table-cell border-style="none" border-width="2pt"
background-repeat="repeat" display-align="start">
      <fo:block>
            <fo:block>
                    <xsl:value-of
select="def:LineItem/def:Item/def:Description"/>
            </fo:block>
       </fo:block>
</fo:table-cell>

I'm not experienced in xsl-fo at all, so any help would be appreciated.
Thanks in Advance
-- 
View this message in context: http://www.nabble.com/Wrapping-text-within-table-row-tp18445715p18445715.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Wednesday, 16 July 2008 05:43:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 July 2008 05:43:45 GMT