Re: [xsl] [FO] columns with borders

Subject: Re: [xsl] [FO] columns with borders
From: "Eliot Kimber" <ekimber@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 May 2007 10:54:53 -0400
Kamal Bhatt wrote:
Hi
I want to create a page with 2 columns and a border around the 2 columns. All I seem to get is a border around each column, but not both columns. I don't want to use tables.

The only way I can think to do this is to put the border contents within a block that turns on borders, e.g.:


<fo:flow>
  <fo:block border="black 1p solid">
    <!-- actual content of flow goes here -->
  </fo:block>
</fo:flow>

The main challenge here would be if you need to do column spanning--spanning blocks must be direct children of fo:flow.

Otherwise, columns are not something you can put borders on directly, since they are simply a side effect of layout.

About the only other solution I can think of would be to use either background graphic for the page or one of the edge regions with an extent that encompasses the extent of the body region and draw boxes that will then be overlaid by the column content. This would result in invariant column boxes on each page.

Cheers,

Eliot

--
W. Eliot Kimber
Professional Services
Innodata Isogen
8500 N. Mopac, Suite 402
Austin, TX 78759
(214) 954-5198

ekimber@xxxxxxxxxxxxxxxxxxx
www.innodata-isogen.com

Current Thread