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

Re: [FO] columns with borders

Subject: Re: [FO] columns with borders
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Tue, 22 May 2007 11:07:53 +1000
Re:  [FO] columns with borders
Paul Tyson wrote:
You can get a fixed page border using fop 0.93 using this approach, which Eliot suggested. As he pointed out, you will not be able to float the bottom border up to the bottom edge of a short column set

The writing mode on the sidebars was the tricky part for me. Then it's just a matter of adjusting the extents and margins to match up.

<fo:layout-master-set>
<fo:simple-page-master master-name="page-master" page-height="8.5in" page-width="11in"
margin-top="0.2in" >
<fo:region-body region-name="normal"
margin-top="1.2in" margin-bottom="0.25in"
margin-left="0.25in"
margin-right="0.25in" />
<fo:region-before region-name="header" extent="1.15in"/>
<fo:region-after region-name="footer" extent="0.2in"/>
<fo:region-start region-name="left-sidebar" extent="0.2in" writing-mode="tb-rl"/>
<fo:region-end region-name="right-sidebar" extent="0.2in" writing-mode="tb-rl"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page-master">
<!-- there are several ways to implement top border (not shown) -->
<fo:static-content flow-name="footer">
<fo:block border-top="1pt solid black">&#160;</fo:block>
</fo:static-content>
<fo:static-content flow-name="left-sidebar">
<fo:block border-top="1pt solid black" margin-left="0.15in" margin-right="0.2in">&#160;</fo:block>
</fo:static-content>
<fo:static-content flow-name="right-sidebar">
<fo:block border-bottom="1pt solid black" margin-left="0.15in" margin-right="0.2in">&#160;</fo:block>
</fo:static-content>
<!-- more of what you want -->
By the looks of it, Ken's suggestion looks easier.


-- Kamal Bhatt

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.