W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

Re: <br> in fo?

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Thu, 20 Jun 2002 08:53:46 -0400
Message-Id: <5.1.0.14.0.20020620085050.02ae4ac0@pop.storm.ca>
To: www-xsl-fo@w3.org

At 2002-06-20 13:31 +0200, Julia wrote:
>I am an "old" html-coder, now confronted with fo. I am really doing
>well, but I can't find the equivalent of <br /> in fo (I simply need a
>new line!)...

Just use <block/> as the equivalent of a <br>.

I've done this in multi-line headings, or figure and caption combinations.

For example:

    <block text-align="center" ..blah.. ..blah... >
       <external-graphic .....>
       <block/>
       Caption text goes here
    </block>

A block breaks the block-progression-direction of the flow, so an empty 
block has the same behaviour that is triggered in HTML as a <br>.

I hope this helps.

........... Ken


--
Upcoming: 3-days XSLT/XPath and/or 2-days XSL-FO:Sep 30-Oct 4,2002

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1                Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed),
articles, training (instructor-live,Internet-live,web/CD,licensed)
Next public training:                 2002-08-05,26,27,09-30,10-03
Received on Thursday, 20 June 2002 08:53:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT