[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [XSL-FO] right alignment after leader dots (multip

Subject: Re: [XSL-FO] right alignment after leader dots (multiple lines)
From: "Geert Bormans geert@xxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Aug 2021 06:48:25 -0000
Re:  [XSL-FO] right alignment after leader dots (multip
Thanks Kevin, fair enough. 

Please find attached a screenshot of two rows in the table 
("message too big" made me put it on a server: [ http://gbormans.telenet.be/table-test.jpg | http://gbormans.telenet.be/table-test.jpg ] ) 

The 2006 and the 2011 should align right in the column 
The 2011 should move right to the second red line 
And the dots should end on the first red line 

I hope this makes more sense now 
The screenshot is the FOP rendering. AH Formatter does what I expected 

Met vriendelijke groeten, 
Best regards, 

Geert Bormans 

----- Op 17 aug 2021 om 0:26 schreef kevin.brown@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>: 

Not clear without screenshot at least. 

This is what you get from FOP: 

From: Geert Bormans geert@xxxxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 
Sent: Monday, August 16, 2021 2:55 PM 
To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> 
Subject:  [XSL-FO] right alignment after leader dots (multiple lines) 


In a table cell, I have (potentially) multiple lines of text, left aligned 

For the last line, I want to align a single word ( maximum 4 digits actually) to the right of the cell and fill the space between this word and the rest of the text with leader dots 

I also want this last line to expand outside the box given to the other lines 

The visual effect is that of a second table cell containing the digits (pushed to the bottom) 

and the first cell having leader dots on the last line, reaching out to the right border of the table cell 

(but I figured out that I can not make that happen in FO) 

The following works perfectly using Antenna House 

<fo:table-cell padding-bottom="5mm" keep-together.within-page="always" 


<fo:block keep-together.within-page="always" 





<fo:inline>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sodales tincidunt sapien. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus quis auctor diam.</fo:inline><fo:inline 



leader-pattern="dots" leader-length.optimum="100%" 

/></fo:inline><fo:inline keep-together.within-line="always" 

font-weight="bold"> 2006</fo:inline></fo:block> 


The 2006 is nicely right aligned to the cell boundary 

In FOP however the digits are not right aligned 

The text-align-last="justify" is not using the full width of the cell 

Is Antenna House doing a much better job than it should, or is FOP having a bug? 

And are there suggestions or workarounds to make this work in FOP? 

If the question is not clear enough, I can attach screenshots and a full working FO (at least in AH formatter) ... but wanted to start without attachments to begin with 

Thanks for any help anyone can offer 

Met vriendelijke groeten, 
Best regards, 

Geert Bormans 

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.