Hello Andreas,

Thanks for your comments

On 01/26/2011 12:02 PM, Andreas Delmelle wrote:
> On 26 Jan 2011, at 19:42, Rob Sargent wrote:
>
> Hi Rob,
>
>   
>> Is there really no fop way to get consistently placed top and bottom
>> lines, such as one expects in a multi-column page of a magazine?
>>     
> No mechanism defined for this in standard XSL-FO 1.1, unfortunately...
>   
Wow
>> I can see that this would mean reverse-leading(?) after the contents of
>> the page had been established, but it seems a fundamental formatting
>> requirement.
>>     
> IIRC, FOP does take care of column-balancing, but only does so for all but 
> the last page. More or less similar to a line-layout, where you generally 
> apply alignment justification on all lines but the last.
>

Hoping that the notion of balancing isn't just to approximate equalize
the vertical length of the columns...

I see several references to tests of region-body_column-count which are
disabled because "Column balancing doesn't work as expected", but I'm
don't see how to turn the balancing on? I see in
ExtensionElementMapping.java that "disable-column-balancing" is the
default in the fox name-space.  And I apparently one turns balancing on
by setting that attribute to "false", is that correct?

To that end, I added the namespace to my xsl file
(xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";) and added the
attribute to my region-body elements but the parser as '<fo:region-body
disable-column-balancing="false" column-count="2"' but my Transformer
chokes complaining that 'Invalid property encountered on
"fo:region-body": disable-column-balancing'
> One possible way out could be to put in a trailing, empty fo:block with 
> span="all" set. That should trigger column-balancing, even if the content 
> takes up less than one page. In combination with display-align="center", that 
> might come very close to what you're looking for. If I understand the 
> requirement correctly, that is...
>
>   
We're working on chapters of a text book, so I don't think this is a
practicable option here.

Thanks again,

rjs

> Hope this helps.
>
> Regards,
>
> Andreas
> ---
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to