This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] 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:ystoda@yahoo.co.jp>
__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/
To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.