xsl-list
[Top] [All Lists]

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

2007-03-07 08:31:53
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>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>