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

graphics & multi-line text

Subject: graphics & multi-line text
From: "Michael Rerick" <rerickm@xxxxxxxxxxxxxxxx>
Date: Tue, 28 Jun 2005 14:55:17 -0700
michael rerick
I am using FOP (in Cocoon), Saxon 6.5.3 & Saxon 8B (in oXygen) to try to
format some text and a graphic.

What I am trying to do is have a corporate graphic on the left side of a
page with the report text centered on the page and centered vertically on
the graphic (see below). This is at the top of the page. The report title
consists of two lines that need to have different font sizes. This is inside
a static-content region.


+-------+
|         |
|         |                              Report Title (in 14pt font)
|         |                                 Sub Title  (in 12 pt font)
|         |
+-------+

This is the closest I can get to what I want. The text is centered on the
page but is all on one line.
      <fo:root>
         <fo:layout-master-set>
            <fo:simple-page-master master-reference="page"
                                   page-height="8.5in"
                                   page-width="11in"
                                   margin-top="0.4in"
                                   margin-bottom="0.3in"
                                   margin-left="0.5in"
                                   margin-right="0.5in">
               <fo:region-before extent="2.0in"/>
               <fo:region-body region-name="xsl-region-body"
                               margin-top="1.95in"
                               margin-bottom="0.6in"/>
               <fo:region-after extent="1.0in"/>
            </fo:simple-page-master>

            <fo:page-sequence-master master-name="all">
               <fo:repeatable-page-master-alternatives>
                  <fo:conditional-page-master-reference master-name="page"
                     page-position="first"/>
               </fo:repeatable-page-master-alternatives>
            </fo:page-sequence-master>
         </fo:layout-master-set>
         <fo:page-sequence master-name="all">
            <fo:static-content flow-name="xsl-region-after"/>

            <fo:static-content flow-name="xsl-region-before">
               <fo:table width="10.5in">
                  <fo:table-column column-number="1" column-width="1.5in"/>
                  <fo:table-column column-number="2" column-width="1in"/>
                  <fo:table-column column-number="3" column-width="3in"/>
                  <fo:table-column column-number="4" column-width="1in"/>
                  <fo:table-column column-number="5" column-width="1in"/>
                  <fo:table-column column-number="6" column-width="1in"/>
                  <fo:table-column column-number="7" column-width="1in"/>
                  <fo:table-column column-number="8" column-width="1in"/>
                  <fo:table-body>
                     <fo:table-row>
                        <fo:table-cell column-number="1"
number-columns-spanned="1">
                           <fo:inline>
                              <fo:external-graphic
src="url(Corporate_05_black.jpg)" scaling="unifiorm" height=".6in"
width=".6in"/>
                           </fo:inline>
                        </fo:table-cell>
                        <fo:table-cell column-number="2"
number-columns-spanned="7" line-height=".6in">
                           <fo:block font-family="serif" font-size="14pt"
font-weight="bold"
                              text-align="center"
alignment-adjust="text-after-edge">
                              <xsl:text>REPORT TITLE </xsl:text>
                              (SUB-TITLE
                           </fo:block>
                        </fo:table-cell>
                     </fo:table-row>
                     <fo:table-row line-height="3mm">
                        <fo:table-cell column-number="1"
number-columns-spanned="8">
                           <fo:block font-family="serif" font-size="10pt"
                              font-weight="bold" text-align="start"
                              white-space-treatment="preserve"
white-space-collapse="false">
                              <xsl:value-of select="' '"/>
                           </fo:block>
                        </fo:table-cell>
                     </fo:table-row>

Any help would be appreciated!
Thanks

Mike
----------------------------------
The ODS Companies
Michael Rerick
Sr. Programmer Analyst
(503) 228-6554  x5741
http://www.odscompanies.com

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are not
the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.

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.