[xep-support] Conditional space after in table-cell
Gustaf Liljegren
gustaf.liljegren at xml.se
Tue Apr 30 03:04:55 PDT 2002
Today I have a problem with conditional bottom margins in block elements in
table cells. I've tried several solutions, and every one of them adds the
extra space after the last block element.
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="test">
<fo:region-body margin="20mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test">
<fo:flow flow-name="xsl-region-body">
<fo:table-and-caption>
<fo:table>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid green">
<fo:block margin-bottom="1em">1</fo:block>
<fo:block margin-bottom="1em">2</fo:block>
<fo:block margin-bottom="1em">3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="1pt solid green">
<fo:block padding-bottom="1em">1</fo:block>
<fo:block padding-bottom="1em">2</fo:block>
<fo:block padding-bottom="1em">3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="1pt solid green">
<fo:block space-after="1em">1</fo:block>
<fo:block space-after="1em">2</fo:block>
<fo:block space-after="1em">3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="1pt solid green">
<fo:block
space-after="1em"
space-after.conditionality="discard">1</fo:block>
<fo:block
space-after="1em"
space-after.conditionality="discard">2</fo:block>
<fo:block
space-after="1em"
space-after.conditionality="discard">3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
</fo:flow>
</fo:page-sequence>
</fo:root>
--
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