W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2004

Re: Several sections of 2-column text per page possible?

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 22 Nov 2004 14:41:52 GMT
Message-Id: <200411221441.OAA25687@penguin.nag.co.uk>
To: oyenstikker@gmail.com
CC: www-xsl-fo@w3.org

   There are a couple similar questions in the archives, but no answers. 
   Here is what I want to do:


   where each individual block of [text] is in 2 columns, wrapped
   independently from the previous and next blocks. The 'column-count'
   attribute applies only to <fo:region-body> and I want to do this
   multiple times per page, so that doesn't appear to be an option.  Is
   it possible to put [text] into a 2 column <fo:table> and have it wrap
   the blocks from the first column to the second and automatically
   adjust the table height?  Or is there some other way to do this?  It
   seems that XSL-FO would have been much more powerful if 'column-count'
   could have applied to <fo:block>.


fo:block takes a span property (7.20.4) so I _think_ that if you make a
"heading" block (which might be empty) in between each of your text
blocks which spans both columns, then you should get the right effect...
(untested on any implementation)

ie you put this in an flow that's using two columns:

<fo:block span="all">block 1</fo:block>
<fo:block span="none">[text]</fo:block>
<fo:block span="all">block 2</fo:block>
<fo:block span="none">[text]</fo:block>
<fo:block span="all">block 3</fo:block>
<fo:block span="none">[text]</fo:block>


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Monday, 22 November 2004 14:42:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC