[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2002-06-12 12:12 +0200, Gustaf Liljegren wrote:
Use display-align="after" for the cell ... see the example below.
Two steps:
(1) - only turn on the border for the character (by using an inline), not for the block
(2) - optionally use line-height="1" to remove any leading on the line, though the leading may be useful for separation since the inline has prevented the leading from having the background colour. I've added this to the example below as well.
I hope this helps.
.................. Ken
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] FO questions about blocks in table-cells
Subject: Re: [xsl] FO questions about blocks in table-cells From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 13 Jun 2002 21:15:45 -0400 |
At 2002-06-12 12:12 +0200, Gustaf Liljegren wrote:
1. How do I align a block to the bottom of a table-cell?
Use display-align="after" for the cell ... see the example below.
2. I've noticed that some fonts are smaller than others. Maybe those smaller fonts have more space around them. I'd like to see the actual size of each glyph. My attempt to do this was to add an <fo:inline> with 'background-color' on each character. Here's the result:
http://www.xml.se/temp/xsl/char1.pdf
The glyph width seem to appear, but I wonder if the height is the actual glyph height or the glyph height + whatever amount of space XSL adds as default line-height? If so, is there a way to strip the extra space around the glyph?
Two steps:
(1) - only turn on the border for the character (by using an inline), not for the block
(2) - optionally use line-height="1" to remove any leading on the line, though the leading may be useful for separation since the inline has prevented the leading from having the background colour. I've added this to the example below as well.
I hope this helps.
.................. Ken
<table border="solid" border-collapse="collapse"> <table-column column-width="5cm"/> <table-column column-width="5cm"/> <table-column column-width="1cm"/> <table-column column-width="1cm"/> <table-column column-width="1cm"/> <table-body> <table-cell border="solid"> <block> This is a cell with a long sentence in it. </block> </table-cell> <table-cell display-align="after" border="solid"> <block> This is short. </block> </table-cell> <table-cell border="solid"> <block><inline background="cyan">X</inline></block> </table-cell> <table-cell border="solid"> <block line-height="1"><inline background="cyan">X</inline></block> </table-cell> <table-cell border="solid"> <block background="cyan">X</block> </table-cell> </table-body> </table>
-- Upcoming: 3-days XSLT/XPath and/or 2-days XSL-FO:Sep 30-Oct 4,2002
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed), articles, training (instructor-live,Internet-live,web/CD,licensed) Next public training: 2002-06-11,13,14,08-05,26,27,09-30,10-03
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] FO questions about blocks in , Gustaf Liljegren | Thread | RE: [xsl] FO questions about blocks, DPawson |
Re: [xsl] Detecting the last page o, G. Ken Holman | Date | RE: [xsl] Yet Another Flat File to , Paul Bunkham |
Month |