[xsl] inline within block within table-cell (scrunch or wrap)

Subject: [xsl] inline within block within table-cell (scrunch or wrap)
From: "John Cavalieri" <john.cavalieri@xxxxxxxxx>
Date: Wed, 7 Mar 2007 09:31:29 -0600
Hi XSL-ers,

I am getting significantly different outputs from the below FO sample
when I process with XEP versus FOP.  The difference occurs with the
table-cell>block>inline portion.  XEP will scrunch the text into one
line, where FOP will let the line wrap.

Which is incorrect... the FO, or if one of the processors?

Thanks for your help,
John

---------

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="A4" page-width="297mm"
page-height="210mm" margin-top="1cm" margin-bottom="1cm"
margin-left="1cm" margin-right="1cm">
			<fo:region-body margin="3cm"/>
			<fo:region-before extent="2cm"/>
			<fo:region-after extent="2cm"/>
			<fo:region-start extent="2cm"/>
			<fo:region-end extent="2cm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	
	<fo:page-sequence master-reference="A4" format="A">
		<fo:flow flow-name="xsl-region-body">

    <fo:block><fo:inline>What if I have a bunch of text? What if I
have a bunch of text? What if I have a bunch of text? What if I have a
bunch of text? What if I have a bunch of text?</fo:inline></fo:block>

     <fo:table table-layout="fixed" width="100%"
border-collapse="separate" space-before="5pt" font-size="10pt">
       <fo:table-column column-number="1"
column-width="proportional-column-width(1)"/>
       <fo:table-column column-number="2"
column-width="proportional-column-width(1)"/>
       <fo:table-body>
         <fo:table-row keep-together="always">
           <fo:table-cell border=".25pt solid black"
padding-right="2pt" padding-left="2pt" padding-bottom="2pt"
padding-top="2pt">
                          <fo:block><fo:inline>What if I have a bunch
of text? What if I have a bunch of text? What if I have a bunch of
text? What if I have a bunch of text?</fo:inline></fo:block>
           </fo:table-cell>
           <fo:table-cell border=".25pt solid black"
padding-right="2pt" padding-left="2pt" padding-bottom="2pt"
padding-top="2pt">
                          <fo:block>What if I have a bunch of text?
What if I have a bunch of text? What if I have a bunch of text? What
if I have a bunch of text?</fo:block>
           </fo:table-cell>
         </fo:table-row>
       </fo:table-body>
     </fo:table>

		</fo:flow>
	</fo:page-sequence>
</fo:root>

Current Thread