This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
FO:Text Alignment in a Table Cell
- From: "Schrooten, Ben" <bschrooten at tjctechnology dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Thu, 15 Aug 2002 11:16:48 -0400
- Subject: [xsl] FO:Text Alignment in a Table Cell
- Reply-to: xsl-list at lists dot mulberrytech dot com
I have an fo:table with two columns in it. If i put enough text in the first
cell of the row so that it wraps i have two lines of text and my row is now
two lines wide, in my second cell i just have a small portion of text, but i
need it to align to the bottom of the cell instead of the top. I have tried
using the vertical-align attribute but this has not worked. Here is an
example XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page"
page-width="8.5in" page-height="11in"
margin-top="0.2in" margin-bottom="0.2in"
margin-left="0.2in" margin-right="0.2in">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page">
<fo:flow flow-name="xsl-region-body" font-family="Arial">
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="someData">
<fo:table table-layout="fixed" width="150mm" border-top-style="solid"
border-top-width="0.1mm" border-bottom-style="solid"
border-bottom-width="0.1mm" border-right-width=".1mm"
border-right-style="solid">
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="50mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-right-width=".1mm"
border-right-style="solid">
<fo:block>Alot of text that will wrap inside
the table cell causing it to form a new line, the row will now be two lines
wide. </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block vertical-align="bottom">Want to Align
Bottom</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
</xsl:stylesheet>
Is there anyway to force it to go down?
Thanks
Ben Schrooten
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list