Whatever I try I can't get fo:leader to work as I want it to.

I have downloaded the latest version of fop-0.20.5.
I have read the FAQs (which claim it works well)

http://xml.apache.org/fop/faq.html#leader-expansion


tried text-align="...." for various things.

I can only get leader to behave at all if I specify the length of the leader - which is not a practical option.

I want to write a line at the bottom of my page like:
<left margin>Hyperlink ...................................................................................... Page 1<right margin>


(What I really want is to be able to center something in the middle as well - but I get the feeling that's being too ambitious.
e.g.
<left margin>Hyperlink ......................................... Centred ......................................................... Page 1<right margin>)


Any help would be greatly appreciated.

(My current attempt is listed below.
The leader fills the whole of the rest of the line and the 'Page' is split onto the next line.


11 <fo:static-content flow-name="xsl-region-after">
12 <fo:block font-family="serif" font-size="8pt" text-align="justify" text-align-last="justify">
13
14 A
15
16 (
17 <fo:basic-link color="blue" external-destination="url(http://www.w3.org/TR/WD-xsl/)">
18 XSL-FO Working Draft
19 </fo:basic-link>
20 )
21 B
22 <fo:leader leader-pattern="dots" leader-length.maximum="100%" rule-style="solid" rule-thickness="1em" color="red"/>
23 Page
24 <fo:page-number/>
25 </fo:block>
26 </fo:static-content>





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to