Next in thread → Next in month →

Re: line break

From
Yoshihiro Toda <>
Date
2004-04-19T01:08:38+00:00
ID
Thread
Re: line break
Hi,
For printing, use <fo:block/> instead of <br/>.

As a more general solution, you can use a processing instruction.  FYI,
the online version of the 'DocBook: The Definitive Guide' uses <?lb?>
(lb for 'Line Break' I guess) PI and this is replaced properly as
follows:

For html (in tdg.xsl):
<xsl:template match="processing-instruction('lb')">
  <br/>
</xsl:template>

...and for xsl-fo (in tdgfo.xsl):
<xsl:template match="processing-instruction('lb')">
  <fo:block>
    <xsl:text> </xsl:text>
  </fo:block>
</xsl:template>

This enables you to insert a linebreak anywhere you like.
-- 
Yoshihiro Toda
<mailto:>
__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/
Next in thread → Next in month →