cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Gilbertson <>
Subject FOP and fo:leader leader-pattern="space" in fo:block
Date Wed, 13 Mar 2002 15:16:02 GMT

I'm using cocoon 2.0.2-dev (xml-cocoon2_20020220112141.tar) with tomcat
4.0.1, and playing with geting documents output as PDF.

Most things seem fine, however I've noticed one behaviour of the fo2pdf
and fo2ps serializers which seems contrary to what I've read in various

The behaviour relates to trying to get a coupld of words on a line left
justified, and a couple right justified, for use in a page header.

Accodring to the various FAQs I've read, the following code should
display "w x" on the left side of the page, and "y z" on the right side
of the page, on the same line, with a large space in the middle:

<fo:static-content flow-name="xsl-region-before">
  <fo:block text-align-last="justify" font-size="9pt">
    <fo:inline>w x</fo:inline>
    <fo:leader leader-pattern="space"/>
    <fo:inline>y z</fo:inline>

However, the output I get is "w" on the first line at the left, "x" on a
second line on the left, with "y" on the right side of that second line,
with "z" on a third line aligned to the left.

Am I missing something, or is there a sepcial way to get the behaviour
I'm after?

John Gilbertson
The University of Liverpool

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message