W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2003

justifying lines with forced line breaks

From: Matthew Gibson <msg2d@virginia.edu>
Date: Wed, 9 Jul 2003 15:14:42 -0400
Message-ID: <000501c3464e$5be05dd0$63c18f80@lib.virginia.edu>
To: www-xsl-fo@w3.org

Quick question: I have a snippet of xml that looks like this--

<p>There was at the school to which I went,<lb/>
a boy about twelve, the same age with myself.<lb/>
His name was William Harding&mdash;he was the<lb/>
only child of a widow lady, living a retired etc...</p>

What I want to do is render the paragraph as fully justified but also
respect the line-breaks (indicated by the linebreak tag)

I tried the following:

<xsl:template match="p">
   <fo:block font-size="12pt"
  &#160;&#160;&#160;<xsl:apply-templates />

with the secondary rule:

<xsl:template match="lb">
     <fo:block />

The result I get, unfortunately, is a paragraph respecting line breaks but
not fully justified.  Anyone have any ideas?

Matthew Gibson
Received on Wednesday, 9 July 2003 15:19:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:58 UTC