W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2002

Re: newbie: setting inline widths using FOP?

From: Cyril Rognon <crognon@objectiva.fr>
Date: Tue, 26 Feb 2002 18:11:15 +0100
Message-Id: <5.1.0.14.2.20020226175030.02a00ec0@pop.pro.proxad.net>
To: www-xsl-fo@w3.org
to achieve what you want you could use fo:leader, with the white space 
leader pattern and place a new leader between each bit of text.

something like :

<fo:block>
         <fo:inline>the first bit of text</fo:inline>
         <fo:leader leader-length="20mm" leader-pattern="space" />
         <fo:inline>the second bit of text</fo:inline>
         <fo:leader leader-pattern="space" leader-length="20mm" />
         <fo:inline>the third bit of text</fo:inline>
</fo:block>


of course, this does not handle the case where the line length is exceeded. 
some of your text will then go off the current line.

Cyril

At 14:52 26/02/2002 +0000, you wrote:
>be nice it's my first post...
>
>I want to distribute blocks of text along the same line and control where
>along the line they get put. Using <fo:inline> and setting the width
>attribute doesn't work, the width attribute makes no difference at all.
>Since I want to distribute 3 bits of text at equal distances along the line,
>I could use a table, but I'm praying for a better way.
>
>Incidentally, what alternatives are there to FOP?
>
>Thanks for your help,
>
>Tom Weissmann
Received on Tuesday, 26 February 2002 12:08:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT