Re: [xsl] FO: block, padding and border

Subject: Re: [xsl] FO: block, padding and border
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Nov 2008 14:35:55 -0500
At 2008-11-18 19:21 +0000, vasu chakkera wrote:
My intent is lost in trivial details :)...

Everyone's contribution is always welcome!

Of course you can use a block inside a block and not use the of:inline.

What I was suggesting was to pad the content and not the block on top of it.

The processor does what you ask it do. The padding is applied to which ever
area scope you specify the padding parameters.

I worry about the use of padding because everything appears to be fine when the child has the same background as the parent ... however, when the backgrounds are different the effects may not be as desired.

>And Vasu's use of padding-left= does not make for a portable
>Stylesheet in case the writing direction should change.

From my original mail , I suggested
<of:inline padding = "2pt"> text </of:inline>

As Florent mentioned he paraphrased ... forgive me for not citing the source correctly.

Still I stand (sit) by my observation regarding using "-start" and not using "-left" because of the prevalent writing direction. I felt something should have been said in this regard for the archive.

Pointing that the padding is applied in the wrong container.

And you were correct. I just think padding isn't the correct facility to use. There is no space-before= or space-after= on an inline area, so a block is more appropropriate, but one must remember there is no space-start= or space-end on a block area.

So when using blocks I firmly believe the correct facilities are space-before=, space-after=, start-indent= and end-indent=.

I agree to all the good implementation specific points suggested by Ken.

I am glad the problem is solved anyway!

And your input to the list is much appreciated!

. . . . . . . . . Ken

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:
Video course overview:
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.
Male Cancer Awareness Nov'07
Legal business disclaimers:

Current Thread