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

FO: center a table

Subject: FO: center a table
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Tue, 27 Dec 2005 11:21:19 +0100 (CET)
xml centering
  Hi

  I can't figure out how to make this simple task: I have a fo:table in
a fo:flow, and I have to center the table horizontally in the flow. 
Something like the following, but with centering the table:

    <?xml version="1.0"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
        <fo:simple-page-master master-name="master"
                               page-height="845pt"
                               page-width="598pt">
          <fo:region-body margin-left="50pt"
                          margin-top="50pt"
                          margin-bottom="50pt"
                          margin-right="50pt"/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="master">
        <fo:flow flow-name="xsl-region-body">
          <fo:table width="100pt" table-layout="fixed">
            <fo:table-column column-width="100pt"/>
            <fo:table-body>
              <fo:table-row>
                <fo:table-cell>
                  <fo:block>foo</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>

  Regards,

--drkm



















	

	
		
___________________________________________________________________________ 
Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international.
Tilichargez sur http://fr.messenger.yahoo.com

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.