facing problem in XSL FO block element and choose element
I have a set of data which is dynamic.i.e the no. of rows is unpredictable. So I want to use XSL <for-each> element . Also I want to put conditions. My code is like:
<xsl:for-each select="parent::EC-REPORT/TITLE-HEADER">
<xsl:choose>
<xsl:when test="position()=1">
</xsl:when>
<xsl:when test="position()=2">
</xsl:when>
<xsl:when test="position()=3">
</xsl:when>
<xsl:otherwise>
<fo:block line-height="19pt" font-weight="bold" font-size="10pt" keep-together="always" text-align="center" white-space-collapse="false" space-after.maximum="0.25em">
<xsl:value-of select="."/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
The problems I am facing are:
When I use the above code with the choose element, my data is not displayed at all. When I remove the choose, i.e with out any conditions, the data is displayed but the space between each row is too big. I want some way of adjusting the spaces b/w the rows.
Thanks
Susmitha

