W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2006

Re: Interpretation of border and padding for blocks in XSL-FO 1.0

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 27 Mar 2006 09:26:36 -0500
Message-Id: <>
To: XSL Editors <xsl-editors@w3.org>

I apologize for taking up the bandwidth on this question ... I just 
found the answer for myself at the end of section 5.3.2, where it 
states that if margins are not explicitly specified, that the 
effective start is outside of the box.  So I now interpret the XEP 
and RenderX presentations as being accurate while the Ibex and DOPE 
presentations are not.

Thanks for your patience with my questions.

. . . . . . . . . Ken

At 2006-03-24 15:32 -0500, I wrote:
>Hi folks,
>In the example below I am seeing two implementations interpret the 
>XSL-FO one way, and two implementations interpret the XSL-FO a 
>different way, and I cannot tell which way is correct from the specification.
><?xml version="1.0" encoding="iso-8859-1"?><!--border-block.fo-->
><root xmlns="http://www.w3.org/1999/XSL/Format"
>       font-family="Times" font-size="20pt">
>   <layout-master-set>
>     <simple-page-master master-name="frame"
>                         page-height="297mm" page-width="210mm"
>                         margin-top="15mm" margin-bottom="15mm"
>                         margin-left="15mm" margin-right="15mm">
>       <region-body region-name="frame-body"/>
>     </simple-page-master>
>   </layout-master-set>
>   <page-sequence master-reference="frame">
>     <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format">
>       <block>This is a test</block>
>       <block padding="10pt" border-width="3pt" border-style="solid">
>         This is a test
>       </block>
>       <block>This is a test</block>
>     </flow>
>   </page-sequence>
>Both Antenna House and RenderX line up the "This" along the left, 
>thus pushing out the border beyond the limits of the parent start 
>and end edges.  This is my intuitive expectation because I'm lining 
>up all the text and I only want some of the text to be bordered.
>Both DOPE and Ibex push the second "This" into the body to 
>accommodate the border and padding such that the border edge lines 
>up with the start of the first and third "This".
>Could you please advise which is conformant behaviour?
>. . . . . . . . . Ken

Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/m/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/m/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
Received on Monday, 27 March 2006 14:54:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:24 UTC