> -----Original Message-----
> From: H. krishna [mailto:[EMAIL PROTECTED]
>
Hi,
Regarding your problem:
> ... Everything is working fine,
> except "space-before" attribute.
Not true. AFAICT, it is working as it should.
The space-before property has a default conditionality of 'discard', which
means that, if there are two successive fo:blocks of which the first has
space-after="12pt" and the second has space-before="12pt", then the distance
between the two blocks --optimum space between, since FOP 0.20.5 supports
only space-*.optimum-- will be 12pt and not 24pt, as you seem to be
expecting (You ARE expecting 24pt, correct?)
Since FOP 0.20.5 does not yet implement space-*.conditionality="retain", I
guess you're going to have to play with the space-* properties, i.e. drop
them in some places, set them to 24pt in others.
On top of that...
> my synatx is :
>
An alternative syntax, much more concise... IMO more flexible and a bit
easier to read/maintain, but that may be a matter of taste.
<xsl:template match="group[cab[contrib]]">
<fo:block font-size="12pt" font-style="italic"
span="all" line-height="14pt"
space-after="12pt" space-before="12pt">
<xsl:value-of select="concat(contrib/name/surname,' ',
contrib/name/given-names)" />
<fo:inline baseline-shift="super">
<xsl:value-of select="contrib/[EMAIL PROTECTED]'aff']" />
</fo:inline>
</fo:block>
</xsl:template>
<xsl:template match="group">
<fo:block font-size="10pt" font-style="italic"
span="all" space-after="12pt"
space-before="12pt">
<xsl:value-of select="contrib/name/surname" />
</fo:block>
</xsl:template>
HTH!
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]