I just rendered a simple test with Oxygen 22's DITA to PDF via XSL-FO. If a table cell just has text in it, there are 3pts of space around it within the cell's borders. If the text is wrapped in a paragraph, then it's about 7.4pts worth of space. The stylesheets have a common.block attr set with .6em above and below, which converts to 7.2pts, roughly.
Code: Select all
<!-- paragraph-like blocks -->
<xsl:attribute-set name="common.block">
<xsl:attribute name="space-before">0.6em</xsl:attribute>
<xsl:attribute name="space-after">0.6em</xsl:attribute>
</xsl:attribute-set>
Code: Select all
<fo:table-cell border-after-color="black" border-after-style="solid"
border-after-width="1pt" border-before-color="black"
border-before-style="solid" border-before-width="1pt" text-align="left">
<fo:block end-indent="3pt" font-weight="bold" space-after="3pt"
space-after.conditionality="retain" space-before="3pt"
space-before.conditionality="retain" start-indent="3pt">
<fo:block space-after="0.6em" space-before="0.6em" text-indent="0em"
>Header is wrapped in paragraph</fo:block>
</fo:block>
</fo:table-cell>
What is the expected layout behavior in this case?
Here is my attempt at using Acrobat's measuring "tool" to document the results:
