Thanks!

Ofcourse this is the function I need. I can't really get it to behave right 
though.

If I use this:

<fo:block>A Price<fo:leader leader-pattern="dots" />€ 250</fo:block>

the result is this:

|A                                                   |
|Price..............................................$|
|                                                 250|

The block is a child element of another block and then fo:flow. No alignment 
properties are set on the flow region or the block regions. Setting alignment 
to left or start does not make any difference.

Is there another special setting required or might it just be the 
implementation? I can imagine the algorithm for the leader length just 
calculating its length based on the last word on the left and the first word on 
the right instead of the endposition on the left and length of the text on the 
right.

Ries Spruit




-----Original Message-----
From: Keiron Liddle [mailto:[EMAIL PROTECTED] 
Sent: maandag 18 november 2002 14:20
To: [EMAIL PROTECTED]
Subject: Re: Alignment question


Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
> Hello,
> 
> Im a trying to achieve something like this:
> 
> ----------------------------------------------------------------------
> --
> ----------
> |This is price text in a normal paragraph
> $ 250,00|
> |
> |
> |
> |     
> 
> or
> 
> ----------------------------------------------------------------------
> --
> ----------
> |This is a very long price text which will force the price to the next
> line but  |
> |it should still be on the right.
> $ 250,00|
> 
> >From this element structure:
> 
> <priceText>
>   <description>This is a price text in a normal paragraph</description>
>   <price>$ 250,00</price>
> </priceText>
> 
>  
> The trick is that I want to allow the description to be as long as 
> necessary. The price should be appended to the description but aligned 
> to the right of the block that the priceText element is used in.
>  
> Does anyone know of anyway of doing this without tables?
>  
> Kind regards,
>  
> Ries Spruit
>  

Reply via email to