[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: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Oct 2009 13:42:42 -0400
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-2013 All Rights Reserved.