This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem in search of solution
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Problem in search of solution
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 16 Jun 2000 09:37:37 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'm trying to produce something such that only the last line
> will have the space-after.optimum attribute. Any ideas how can I do this?
<xsl:template match="section_head">
<xsl:for-each select="line">
<fo:block font-weight="bold" font-size="12pt">
<xsl:if test="position()=last()">
<xsl:attribute>
name="space-after.optimum">0.25in</xsl:attribute>
<xsl:if>
<xsl:value-of select="." />
</fo:block>
</xsl:for-each>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list