W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2005

linefeed

From: torsten krohn | tsdb | the simpsons database <torsten@tsdb.de>
Date: Tue, 10 May 2005 17:06:58 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <000201c55571$eac03e60$0301a8c0@HOMER>

Hi!

There seems to be many ways to change "<br>" into a xsl-fo linebreak,
but what if there are two of it? 
For example "text1<br><br>text2" into

text1

text2

<xsl:template match="br">
<fo:block>
<fo:character character = '&#x2028;' />
<!-- or <xsl:text>&#xA;</xsl:text>-->
</fo:block>
</xsl:template>

generates

text1
text2

<xsl:template match="br">
<fo:block>
<fo:leader/>
</fo:block>
</xsl:template>

generates always two linefeeds even when there is only one <br>!

Thank you, Torsten 
Received on Tuesday, 10 May 2005 15:07:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT