[xep-support] Padding on blocks

From: Gustaf Liljegren (gustafl@algonet.se)
Date: Tue Nov 12 2002 - 00:21:45 PST


Here's a very basic question. I've hever been able to understand the
reasoning behind padding on blocks. Here's a template for boxed text:

<xsl:template match="note">
  <fo:block
    padding="2mm"
    border="0.5pt solid black"
    keep-together.within-page="always">
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

I'd expect the border around to be aligned with the region boundaries
(typically region-body), but instead, the text is aligned with the region
while the border is outside. The border is the outmost part of the block.
What says it can go outside the region?

Gustaf

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST