You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Olivier Mansour <om...@clever-age.com> on 2006/09/22 09:59:54 UTC

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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: simulating line breaks with fo

Posted by Manuel Mall <ma...@apache.org>.
On Friday 22 September 2006 15:59, Olivier Mansour wrote:
> 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>
>
Try to put some content into the block, e.g. a non breaking space, and 
see if that helps:
<fo:block>&#160;</fo:block>

> 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
>
Manuel

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: simulating line breaks with fo

Posted by Olivier Mansour <om...@clever-age.com>.
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:omansour@clever-age.com]
> 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:omansour@clever-age.com]
>> 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: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users- 
>> help@xmlgraphics.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users- 
>> help@xmlgraphics.apache.org
>>
>
>
>
> --
> 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



--
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: simulating line breaks with fo

Posted by Peter <pc...@gmail.com>.
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?

Peter

-----Original Message-----
From: Olivier Mansour [mailto:omansour@clever-age.com] 
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:omansour@clever-age.com]
> 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



--
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: simulating line breaks with fo

Posted by Olivier Mansour <om...@clever-age.com>.
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:omansour@clever-age.com]
> 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



--
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: simulating line breaks with fo

Posted by Peter <pc...@gmail.com>.
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:omansour@clever-age.com] 
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org