[xep-support] How to control line wrappings while using <fo:leader>?

Fritz Kirch Friedrich.Kirch at it2media.de
Fri Nov 30 06:28:18 PST 2007


Dear XEP-support,

 

While I am creating phonebook advertisements with XSLFO I have the following situation:

I have lines with left aligned text (i.e. the NAME), then leading dots and then right align text (i.e. PHONENUMBER).

Everything is ok, as long as everything fits into one line.

But: With very long left aligned text (NAME), the line is wrapped and the right aligned text (PHONENUMBER) is the one and only text at the second line.

 

My expectation is that the left aligned text (NAME) would break between words earlier in the line to put the last word with the right aligned text (PHONENUMBER) on the next line.

 

But it doesn't seem to work.

 

Can anybody help me?

 

Fritz Kirch

IT2media GmbH & Co. KG

Nürnberg, Germany 

 

Here is my FO-File:

 

<?xml version='1.0' ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:def="http://www.adsml.org/adsmlstructureddescriptions/1.0">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="first-page" page-width="44mm" page-height="10mm">
      <fo:region-body region-name="Advertisement" margin-left="0.3mm" margin-right="0mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="first-page">
    <fo:flow flow-name="Advertisement">
      <fo:block>
        <fo:block font="7pt Helvetica">
          <fo:inline font-weight="bold">4762</fo:inline>
            (Abu Dhabi Main GPO)       
        </fo:block>
        <fo:block text-align-last="justify" font="7pt Helvetica bold" font-weight="bold" margin-left="4pt">INANI MARBLES &amp; GRANITE TR
          <fo:leader leader-pattern="dots" keep-with-next.within-line="always" keep-with-previous.within-line="always"/>04-2694773
        </fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root> 

 


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
mailsweeper at it2media.de
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20071130/8b846e77/attachment.html>


More information about the Xep-support mailing list