[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FO:Text Alignment in a Table Cell

Subject: FO:Text Alignment in a Table Cell
From: "Schrooten, Ben" <bschrooten@xxxxxxxxxxxxxxxxx>
Date: Thu, 15 Aug 2002 11:16:48 -0400
fo text
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.