Hello All,
I need to know whether the following can be achieved.
I have a table with dynamic number of rows. Between each rows i need some
space but this space should not be added if the row is the last row in the
page. How can this be done/
The following is the snippet of my XSL file
<xsl:for-each select="Record" >
<fo:table width="100%" font-size="10pt">
<fo:table-column column-width="3cm" />
<fo:table-column column-width="3cm" />
<fo:table-column column-width="8cm" />
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="left">
<fo:block left="0cm" >
<xsl:value-of select="Data1"/>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="left">
<fo:block left="0cm">
<xsl:value-of select="Data2"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="3" text-align="left"
width="100%">>
<fo:block left="0cm">
<xsl:value-of select="Data3"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<!-- The below ros is just added to add space after every record -->
<fo:table-row height="1.5cm">
<fo:table-cell number-columns-spanned="3" text-align="left"
width="100%">>
<fo:block left="0cm"/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:for-each>
--
View this message in context:
http://www.nabble.com/Adding-row-based-on-a-condition-tp25989667p25989667.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]