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

[1125 byte] By [lingamaneni04a] at [2007-11-27 8:14:26]
# 1

So you want to skip the first three elements? Or are you complaining that the first three elements are skipped (which is what your code does)?

As for the spacing between rows, wouldn't it be easier just to find the XSL-FO attribute that controls it? I don't know XSL-FO but if there's a space-after.maximum attribute then surely there must be space-between attributes as well?

DrClapa at 2007-7-12 19:59:00 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...