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

Re: Blank lines

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Fri, 18 Oct 2002 15:17:06 -0400
Message-Id: <5.1.0.14.0.20021018151325.03112238@pop.storm.ca>
To: <www-xsl-fo@w3.org>

At 2002-10-18 14:13 -0400, Sharmila Pandith wrote:
>How do we represent blank lines in XSL:FO?

I often do it by spacing down and placing an empty block:

   <block>This is a test</block>
   <block space-before="12pt"/>
   <block>This is another test</block>

>Would this be legal?
>fo:block>
><fo:leader line-height="12pt" />
></fo:block>

Yes, but it wouldn't give what you wanted ... put the line height on the 
block (since that is what is creating the line the leader is going on):

   <block line-height="12pt"><leader/></block>

I hope this helps.

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


--
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 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next public training:          2002-12-08,2003-02-03,06,03-03,06
Received on Friday, 18 October 2002 15:17:20 GMT

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