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

RE: FOP transform region issue

Subject: RE: FOP transform region issue
From: "W Charlton" <XSLList@xxxxxxxxxx>
Date: Wed, 28 Oct 2009 11:31:22 -0000
RE:  FOP transform region issue
Mark,

You must have columns specified for tables in XSL-FO or the table will not
render.

<fo:table table-layout="fixed">
<!-- Add this or it won't work -->
	  <fo:table-column column-width="100%" column-number="1"/>


William Charlton
The yMonda team
yMonda Limited
w: www.ymonda.net

-----Original Message-----
From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx] 
Sent: 27 October 2009 17:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  FOP transform region issue

At 2009-10-27 10:28 -0700, mark bordelon wrote:
>OK, following instructions,
>I have only one flow for the body and static-content for the before-region.
>
>Structure looks like this:

I removed the XSLT and just edited a raw XSL-FO file so as to be able 
to test the pertinent issues without the XSLT getting in the way.  I 
also had to flesh out the table and the body to get some text.  I was 
left with this:

   <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
     <fo:simple-page-master master-name="cover_letter" 
page-width="8.5in" page-height="11in" margin-top="0.5in" 
margin-bottom=".5in" margin-left="0.5in" margin-right="1in">
      <fo:region-body margin-left="0.50in" margin-top="1.25in" />
      <fo:region-before extent="1in"/>
     </fo:simple-page-master>
    </fo:layout-master-set>

    <fo:page-sequence master-reference="cover_letter"
                      force-page-count="no-force">

     <fo:static-content flow-name="xsl-region-before">
       <!-- none of this is appearing !!! -->
      <fo:table table-layout="fixed">
        <fo:table-body>
          <fo:table-cell>
            <fo:block>Hello in the header table!</fo:block>
          </fo:table-cell>
        </fo:table-body>
      </fo:table>
     </fo:static-content>
     <fo:flow flow-name="xsl-region-body">
      <fo:block font-family="LinotypeSyntax" font-size="8pt">
        Hello in the body.
      </fo:block>
     </fo:flow> <!-- for the body -->
    </fo:page-sequence>
   </fo:root>

When I run the above through four XSL-FO processors (including FOP), 
I get both the header and the body showing.  I am also using FOP 0.95 
and I get these messages:

t:\ftemp>xslfo-pdf-fop mark.fo mark.pdf -v
FOP Version 0.95
Oct 27, 2009 1:37:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'LinotypeSyntax,normal,400' not found. Substituting 
with 'any,normal,400'.
Oct 27, 2009 1:37:03 PM 
org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not 
supported => assuming width="100%"

t:\ftemp>

>But the bad news is the static-content for the before-region does not
appear

I am seeing the static content, so I'm not sure how to mimic the 
problems you are experiencing.

Perhaps someone on the list with FOP experience can recognize the 
differences in behaviours.

. . . . . . . . . . . . . . Ken

--
Upcoming:  hands-on XSLT, XQuery and XSL-FO Washington DC Nov 2009
Interested in other classes?  http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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-2011 All Rights Reserved.