RE: [xsl] FOP transform region issue

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

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

<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

-----Original Message-----
From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx] 
Sent: 27 October 2009 17:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] 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="";>
     <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:page-sequence master-reference="cover_letter"

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

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.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%"


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

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?
Crane Softwrights Ltd.
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:
Video overview:
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07
Legal business disclaimers:

Current Thread