W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2003

Re: alignment

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Fri, 25 Apr 2003 12:28:43 -0400
Message-Id: <5.2.0.9.0.20030425122746.02c7e690@pop.storm.ca>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

At 2003-04-25 11:12 -0400, Yoshida, Ken wrote:
>I have this:
>
><fo:table-row border-width="0.5pt">
>     <xsl:apply-templates select="CustomerNumber | PreInc | PostInc | 
> ChangeAmount | ChangePercentage" />
></fo:table-row>
>
>I want to left justify some of the columns and right justify others.  How 
>can I do this?

By having template rules for each of the individual element types and using 
text-align="start" and text-align="end" respectively on the blocks you use 
for the contents of each of the elements.

I hope this helps.

..................... Ken



--
Upcoming hands-on courses:   Europe (XSLT/XPath):    May  5, 2003
-                            Europe (XSL-FO):        May 16, 2003
- (XSLT/XPath and/or XSL-FO) North America:      June 16-20, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1              Practical Formatting Using XSL-FO
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
Received on Friday, 25 April 2003 12:28:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT