[XSLFO] List block space after

Here should go questions about transforming XML with XSLT and FOP.
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

[XSLFO] List block space after

Post by ESTRADE »

Hi

I have problem with space after

File FO :

Code: Select all


<?xml version="1.0" encoding="iso-8859-1"?>

<fo:block>
<fo:list-block space-before="3mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">(7) </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:block>This manual contains:</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-block space-before="3mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm"> </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:list-block provisional-distance-between-starts="0.5cm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>gfgfgfg gfgfggf gfgfggfgf fggfgfgfgf,</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>khkhk tytyuit oktlt jhjhjhj jhjhhjh,</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="1cm">
<fo:block>bvbvbvbvb bbvbvbvbbv bvbvbbvbv bbvbvbvb.</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>

</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
I want space betwwen '-' but i indicate space-after="1cm" and in result not exist space betwee '-' ?

Thank you for help

Best regards
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [XSLFO] List block space after

Post by sorin_ristache »

Hello Bruno,

You have to add the space-after attribute to the fo:list-item element instead of the fo:block element:

Code: Select all

<fo:list-item space-after="1cm">
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:block>gfgfgfg gfgfggf gfgfggfgf</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>

Regards,
Sorin
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Re: [XSLFO] List block space after

Post by ESTRADE »

thank you is OK
Post Reply