[xep-support] Padding on blocks

Gustaf Liljegren gustafl at algonet.se
Tue Nov 12 00:21:45 PST 2002


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



More information about the Xep-support mailing list