single column and double column on a single page?

View: New views
3 Messages — Rating Filter:   Alert me  

single column and double column on a single page?

by Julian Reschke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to use both a single and a double column layout on a single
page. It appears that @column-count can only be set on the page master
declaration, so I need to start a new page to switch to double column
layout.

Am I missing something here?

Best regards, Julian


Re: single column and double column on a single page?

by Tony Graham-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Aug 01 2009 12:44:46 +0100, julian.reschke@... wrote:
> I'm trying to use both a single and a double column layout on a single
> page. It appears that @column-count can only be set on the page master
> declaration, so I need to start a new page to switch to double column
> layout.

Use 'column-count="2"', and on any fo:block or fo:block-container that
should span both columns, use 'span="all"' [1].

You can't span fewer than all columns, though the XSL 2.0 requirements
document includes a requirement to support spanning over less than the
total number of columns [2].

Regards,


Tony Graham                         Tony.Graham@...
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


[1] http://www.w3.org/TR/xsl11/#span
[2] http://www.w3.org/TR/xslfo20-req/#N66496


Re: single column and double column on a single page?

by Julian Reschke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tony Graham wrote:
> On Sat, Aug 01 2009 12:44:46 +0100, julian.reschke@... wrote:
>> I'm trying to use both a single and a double column layout on a single
>> page. It appears that @column-count can only be set on the page master
>> declaration, so I need to start a new page to switch to double column
>> layout.
>
> Use 'column-count="2"', and on any fo:block or fo:block-container that
> should span both columns, use 'span="all"' [1].
> ...

Thanks for the advice.

I tried that, didn't get it to work with FOP 0.95, then found
<http://www.sagehill.net/docbookxsl/MultiColumns.html>, which points out
that I need to set the property on the fo:block elements contained in
fo:flow; and also that space-before/space-after gets ignored.

So it seems either I'm stuck with having a page break where I don't need
it, or a major restructuring of my XSLT...

BR, Julian