Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Creating a Footer using XSL-FO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating a Footer using XSL-FO" Watch "Creating a Footer using XSL-FO" New topic
Author

Creating a Footer using XSL-FO

Ray Benjamin
Greenhorn

Joined: Sep 24, 2008
Posts: 1
What I want to do is simple, I think, but I can't figure out how it should be done. I have a report that I'm creating using XML-FO and FOP. At the bottom of each page, I'd like to have a footer like so:

| |
| |
| Printed 9/23/2008 Page 1 of 22 Property of XYZ Company |
+--------------------------------------------------------------------+

As you can see, I'd like to have the date left justified, the page number info in the center, and the company name right justified. If I use <fo:block text-align="start">date</fo:block>
<fo:block text-align="center">page stuff</fo:block>
<fo:block text-align="end">company</fo:block>

I get 3 separate lines. If I use <fo:inline>, it just plain doesn't work, everything gets left justified.

I can fudge it, but that just makes me feel all dirty!

Can anyone tell me how I should do this?

Thanks ahead of time,
Ray
[ September 24, 2008: Message edited by: Ulf Dittmer ]
 
Consider Paul's rocket mass heater.
 
subject: Creating a Footer using XSL-FO
 
Similar Threads
XML to PDF
XSL help required to display PDF
auto-indent
looping inside the child elements instead of using xsl:for-each
Mulitple fo:page-sequence