Subject: Re: [xsl] FO: block, padding and border From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 18 Nov 2008 12:33:51 -0500 |
"G. Ken Holman" wrote:
> > Of course, the borders should be aligned. How would you do > >that?
> By using space-before= and space-after= for top and bottom, and > start-indent= and end-indent= for left and right.
Thanks for your detailed answer, Ken. Unfortunately, when I try the following:
<fo:block space-before="5pt" start-indent="5pt" border="solid 0.5pt"> Bla bla... </fo:block>
I get the opposite result: the border is moved to the inside of the block.
<fo:block border="solid 0.5pt"> <fo:block space-before="5pt" start-indent="5pt" space-after="5pt" end-indent="5pt"> bla... bla...
Thanks to Vasu, I found the following that solves my problem:
<fo:block padding-top="5pt" border="solid 0.5pt"> <fo:inline padding-left="5pt">Bla bla...</fo:inline> </fo:block>
With this, the border around the block is still aligned with borders around tables, and the text is 5pt away from the border. I am not sure this is the right way to go, but it seems clean enough.
I use FOP 0.95, not sure this has something to do...
-- Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes: : Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video sample lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg Video course overview: http://www.youtube.com/watch?v=VTiodiij6gE G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] FO: block, padding and bo, Florent Georges | Thread | Re: [xsl] FO: block, padding and bo, Florent Georges |
Re: [xsl] Working example xml+xsl t, Michael Ludwig | Date | Re: [xsl] FO: block, padding and bo, Florent Georges |
Month |