OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]