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

RE: Outline a header

Subject: RE: Outline a header
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Wed, 12 Nov 2003 14:31:02 +0100
block outline
> -----Original Message-----
> From: Barry van Weldam
>
> I kinda works, but now i notice that i can't use spaces between
> words i want to keep together.
>
> any suggestions?
>

Notice that <fo:leader ...> won't work as expected due to the absence of a
leader-length and/or a leader-alignment attribute. (I think in the snippet
in your original post, it would yield a single space...)

What is happening due to the text-align-last attribute, is that all space on
the line is stretched so that all the contents of the fo:block take up a
full 'line'... Any fo:inline added will decrease the intermediate space.

I think, for your purpose, a small fo:table would be best suited

<fo:table table-layout="fixed" >
  <fo:table-column column-width="..." />
  <fo:table-column column-width="..." />
  <fo:table-column column-width="..." />
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell>
        <fo:block text-align="start">CompanyName</fo:block>
      </fo:table-cell>
      <fo:table-cell>
        <fo:block text-align="center">Hmmm</fo:block>
      </fo:table-cell>
      <fo:table-cell>
        <fo:block text-align="end">Page <fo:page-number /></fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


Hope this helps!

Greetz,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.