xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nedim Buke" <nedim.b...@gmail.com>
Subject Re: table-row breaking
Date Mon, 25 Feb 2008 15:30:35 GMT
Hello,

The pdf is the output of the fop. The page 19 contains the table where the
row is broken.

On Mon, Feb 25, 2008 at 5:24 PM, Nedim Buke <nedim.buke@gmail.com> wrote:

>
>
> On Mon, Feb 25, 2008 at 5:13 PM, Vincent Hennebert <
> vincent.hennebert@anyware-tech.com> wrote:
>
> > 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://people.apache.org/%7Evhennebert>
> > 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
> >
> >
>
>
> --
> Nedim Buke




-- 
Nedim Buke

Mime
View raw message