Hi,

Please check this following text and the link to get the solution...

Since the overflow property doesn't apply to table-cell, you can wrap the cell content in a block-container and specify overflow="hidden" there. Alternatively, if you have long words overflowing table cells, try to get them hyphenated. Artificial names like product identifications or long numbers usually aren't hyphenated. You can try special processing at XSLT level, like

   * clip long text,
   * explicit wrapping+clipping,
   * insert zero width spaces (U+200B or ​) to allow FOP to wrap.

http://xmlgraphics.apache.org/fop/faq.html#cells-overflow

Cheers,
Venkat.


lexa2009 wrote:
hi. sorry, i forget to do this :)

fop 0.95, here fo
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format";
                        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                                xmlns:m="http://www.w3.org/1998/Math/MathML";>
        <xsl:template match="/">
                <fo:root xmlns:m="http://www.w3.org/1998/Math/MathML";
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                        <fo:layout-master-set>
                                <fo:simple-page-master master-name="my-page" 
page-height="29.7cm"
page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm"
margin-right="0cm">
                                        <fo:region-body column-count="2" 
margin-top="1.5cm"
margin-bottom="1.5cm" margin-left="1.5cm" margin-right="1.5cm" />
                                
                                </fo:simple-page-master>
                                
                        
                                
                        </fo:layout-master-set>
                        
                        <fo:page-sequence master-reference="my-page">
                        
                                <fo:flow flow-name="xsl-region-body">
                                        
                                                        <fo:block space-after="1cm" 
space-before="1cm">
                                                                <fo:table table-layout="fixed" 
width="100%" border="solid black
1px">
                                                                        <fo:table-column 
column-width="20mm"/>
                                                                        <fo:table-column 
column-width="30mm"/>
                                                                        
<fo:table-body>
                                                                                
<fo:table-row>
                                                                                      
  <fo:table-cell>
<fo:block text-indent="0cm" border="solid black 1px" hyphenate="true" language="en">longlonglongword</fo:block>
                                                                                      
  </fo:table-cell>
                                                                                
                                                
                                                                                      
  <fo:table-cell>
<fo:block text-indent="0cm" hyphenate="true" language="en">55,33333</fo:block>
                                                                                      
  </fo:table-cell>
                                                                                
                                        
                                                                                
</fo:table-row>
                                                                                      
  <fo:table-row>
                                                                                      
  <fo:table-cell>
<fo:block text-indent="0cm" border="solid black 1px" hyphenate="true" language="en">55,33333333333</fo:block>
                                                                                      
  </fo:table-cell>
                                                                                
                                                
                                                                                      
  <fo:table-cell>
<fo:block text-indent="0cm" hyphenate="true" language="en">523</fo:block>
                                                                                      
  </fo:table-cell>
                                                                                
                                        
                                                                                
</fo:table-row>
                                                                        
</fo:table-body>
                                                                </fo:table>
                                                


                                        </fo:block>
                                </fo:flow>
                        </fo:page-sequence>
                </fo:root>
        </xsl:template>
</xsl:stylesheet>
                
pdf : http://old.nabble.com/file/p27110151/name.pdf name.pdf


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to