I should be more specific - what I mean is; I would like to try to get keep-with-next/previous working with fo:block elements.
On Wed, 30 Jan 2002, David Wood wrote: > I am a Java coder and know my way around the standard. I volunteer to try > to fix this, if someone who is more familiar with FOP's internals can > tell me where to look... > > -David > > On Wed, 30 Jan 2002, Sam Prokop wrote: > > > 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 > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]