xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vincent.henneb...@anyware-tech.com>
Subject Re: table-row breaking
Date Mon, 25 Feb 2008 15:13:20 GMT
Hi,

Please provide the XSL-FO file resulting from the transformation. 
There’s nothing we can do without it. But keep-together is supposed to 
work on fo:table and fo:table-row.

Thanks,
Vincent


Nedim Buke wrote:
> Hi Everybody,
> 
> I am currently working on creating a table.My environment is
> FOP version: 0.94
> JDK version:1.4.2_14
> 
> 
> I need to keep the row at the same page. But currently the keep-together
> property seems not working. So I applied keep-together properties the blocks
> which are under table-cell tags. The first column cells are spaning multiple
> rows. When keep-together is applied for the first clomuns cells it seems
> working for the first break. However, for the next break the third cell is
> broken into the pages so the first is also. Then I applied keep-together
> property to the third colmun cells. Alhough it achives keeping together
> thirds cells together this time  the first columns cells are broken into
> pages.
> 
> The table row code is like below.
> 
>   <fo:table-row keep-together="always">
> 
> <!--FIRST COLUMN-->
>         <xsl:choose>
>             <xsl:when
> test="local-name(preceding-sibling::*[position()=1])='fault-detail'">
>                          <fo:table-cell   border-right="solid black 1px"
> border-bottom="{$border_bottom_0}"  width="{$width}"
> number-rows-spanned="{$sps}" padding-left="1mm">
>                     <fo:block keep-together="always">
>                                <fo:block  xsl:use-attribute-sets="fault"
> keep-together="always">
>                                <xsl:value-of select="../faultdesc"/>
>                            </fo:block>
>                            <fo:block
> xsl:use-attribute-sets="tabtxt_einzug"><xsl:value-of
> select="$fault-detail"/></fo:block>
> 
>                        </fo:block>
>                 </fo:table-cell>
>             </xsl:when>
>             <xsl:otherwise>
>                 <xsl:if
> test="local-name(preceding-sibling::*[position()=1])='faultdesc'">
> 
>                 <fo:table-cell   border-right="solid black 1px"
> border-bottom="{$border_bottom_0}"  width="{$width}"
> number-rows-spanned="{$sp}"   padding-left="1mm">
>                     <fo:block  keep-together="always">
>                            <fo:block  xsl:use-attribute-sets="fault"
> keep-together="always">
>                                    <xsl:value-of select="../faultdesc"/>
>                            </fo:block>
>                            <fo:block
> xsl:use-attribute-sets="tabtxt_einzug"><xsl:value-of
> select="$fault-detail"/></fo:block>
> 
>                        </fo:block>
>                 </fo:table-cell>
> 
>                 </xsl:if>
>             </xsl:otherwise>
>         </xsl:choose>
> 
> <!--SECOND COLUMN-->
>                <fo:table-cell   border-right="solid black 1px"
> border-bottom="{$border_bottom_1}"  width="{$width}" padding-left="1mm">
>                    <fo:block  xsl:use-attribute-sets="tabtxt"
> keep-together="always">
>                    <xsl:apply-templates select="cause"/>
>                    </fo:block>
>             </fo:table-cell>
> 
> <!--THIRD COLUMN-->
>             <fo:table-cell   border-right="solid black 1px"
> border-bottom="{$border_bottom_1}" width="{$width}" padding-left="1mm">
>             <fo:block keep-together="always">
>                 <xsl:apply-templates select="procedure" mode="proc" />
>             </fo:block>
>              </fo:table-cell>
> 
> <!--FOURTH COLUMN-->
>               <fo:table-cell   border-bottom="{$border_bottom_2}"
> width="{$width}" padding-left="1mm">
>                 <fo:block xsl:use-attribute-sets="tabtxt"
> keep-together="always"><xsl:apply-templates
> select="procedure/customer-info/info-content/para"
> mode="customer-info"/></fo:block>
>             </fo:table-cell>
> 
>     </fo:table-row>
> 
> 
> The attachments contains the last situation when keeptogether property is
> applied for both first and third cells.
> 
> Can anyone can help me? Is there any comments releated with this topic. It
> is an urgent task.
> 
> Thanks in advance.

-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message