In my case i have to provide spaces between two table rows upto .5cm.how can i achieve it.
code::
I have used:
<fo:table-row space-before="0.5cm" keep-together.within-column="always">
but it doesn't work,but the same attribute i have used in table
<fo:table space-before="0.5cm" border="solid 0.1mm black">
here it works(in case of providibg space between two table) please let me know the solution
Kevin's solution works by adding some space between cell border and it's inner content. In some cases, this might be sufficient. But correct solution (and only one if you have table with visible borders) is IMHO to use border-separation\border-spacing attribute instead:
<fo:table border-collapse="separate" border-separation="3pt">...</fo:table>
This will add 3pt space between adjecent cells borders in row and column direction.
There is also CSS "shorthand" property border-spacing:
<fo:table border-collapse="separate" border-spacing="5pt 2pt">...</fo:table>
This will add 5pt space between columns and 2pt space between rows.
Edit: Rephrased argument about Kevin's anwer correctness. Added links to spec. Added border-spacing alternative and example how to specify different spaces for rows\columns.