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

inline within block within table-cell (scrunch or wrap

Subject: inline within block within table-cell (scrunch or wrap)
From: "John Cavalieri" <john.cavalieri@xxxxxxxxx>
Date: Wed, 7 Mar 2007 09:31:29 -0600
 inline within block within table-cell (scrunch or wrap
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

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.