Le 22 sept. 06 à 10:26, Peter a écrit :

The template stylesheet I am using which does the trick for me is

  <xsl:template match="br">
    <xsl:choose>
      <xsl:when test="preceding-sibling::node()[1][self::br]">
        <fo:block><fo:leader/></fo:block>
      </xsl:when>
      <xsl:otherwise>
        <fo:block></fo:block>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

Perhaps that works for you?

It works just great !

Thanks a lot Peter


Peter

-----Original Message-----
From: Olivier Mansour [mailto:[EMAIL PROTECTED]
Sent: vrijdag 22 september 2006 10:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: simulating line breaks with fo

Thank you

non of those tricks are really working :
<fo:block>&#160;</fo:block> insert a line break but the second one
has no effect (so you can't do <br /> <br />)

<fo:blok><fo:leader/></fo:block> insert too much spaces

:-(

Olivier


Le 22 sept. 06 à 10:10, Peter a écrit :

An often used "trick" one finds in mailing lists (e.g.
http://www.biglist.com/lists/xsl-list/archives/200306/
msg00445.html) is to
use

<fo:blok><fo:leader/></fo:block>

Hth,

Peter

-----Original Message-----
From: Olivier Mansour [mailto:[EMAIL PROTECTED]
Sent: vrijdag 22 september 2006 10:00
To: fop-users@xmlgraphics.apache.org
Subject: simulating line breaks with fo

Hey

I'm trying desepratly to simulate line breaks with FOP 0.92.

I have an xsl style sheet looks like this :

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

Actually it works fine with just one <br />. But adding more has no
effect :-(

Thank you

Olivier


--
Olivier Mansour      http://www.clever-age.com
Clever Age Lyon - conseil en architecture technique
GSM: +33 6 11 03 23 77  Tél: +33 4 78 89 46 45

Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: fop-users- [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: fop-users- [EMAIL PROTECTED]




--
Olivier Mansour      http://www.clever-age.com
Clever Age Lyon - conseil en architecture technique
GSM: +33 6 11 03 23 77  Tél: +33 4 78 89 46 45

Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Olivier Mansour      http://www.clever-age.com
Clever Age Lyon - conseil en architecture technique
GSM: +33 6 11 03 23 77  Tél: +33 4 78 89 46 45

Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to