I have had the same experience. It would be great if "keep-with-next" could be fixed with the fo:block element.
Jarle > -----Original Message----- > From: Sam Prokop [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 30, 2002 5:10 PM > To: [EMAIL PROTECTED] > Subject: AW: keep-with-next? > > > I found out it just works with table-rows, if you use > keep-with-next and > keep-with-previous. > and you have to take care, that the table doesn�t exceeds the page, > otherwise you�ll get a infinite-loop. > > that�s all i found out :-( > > Sam > > > -----Urspr�ngliche Nachricht----- > > Von: Costantino Sertorio [mailto:[EMAIL PROTECTED] > > Gesendet: Montag, 28. Januar 2002 16:51 > > An: [EMAIL PROTECTED] > > Betreff: keep-with-next? > > > > > > Hello, > > Is the keep-with-next attribute supported by FOP? > > If yes, can anybody explain to me what I am doing wrong? > > I have a "heading" template which I would like to keep > > together with the > > following text, therefore I defined the following, but it > > doesn't work (the > > following paragraph ends up in the next page): > > > > <xsl:template match="heading"> > > <xsl:choose> > > <xsl:when test="@level='1'"> > > <fo:block keep-with-next="always" > > space-before="0.6cm" space-after > > ="0.6cm" font-size="13pt" font-weight="bold"> > > <xsl:apply-templates/> > > </fo:block> > > </xsl:when> > > <xsl:when test="@level='2'"> > > <fo:block keep-with-next="always" space-before="5mm" > > font-size=" > > 10pt" font-weight="bold"> > > <xsl:apply-templates/> > > </fo:block> > > </xsl:when> > > > > Thank you, > > > > Costantino > > > > > > >
