It sounds like <?dbfo keep-together="auto" ?> is only supported in
tables: http://www.sagehill.net/docbookxsl/PageBreaking.html
You could add something like this to your customization layer:
<xsl:template match="*[processing-instruction('mansour-fo') =
'keep-together']">
<fo:block keep-together.within-column="always">
<xsl:apply-imports/>
</fo:block>
</xsl:template>
This template wraps any element containing <?mansour-fo keep-together?>
in a <fo:block keep-together.within-column="always">. So put
<?mansour-fo keep-together?> as a child of your section. It should also
work in other places, but you could also put is in places where the
results would be not what you want or even result in invalid fo.
David
> -----Original Message-----
> From: Mansour [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 02, 2007 3:26 PM
> To: [email protected]
> Subject: [docbook] keep-together and keep-with-next
>
> I have a section that I need it all in one page. This section
> consists only of a list. The last item in the list is
> rendered on the top of the next page. I have tried every
> possible combination of keep-together and keep-with-next.
> Nothing worked.
>
> <section>
> <title> title of the section</title>
> <?dbfo keep-together.within-coloumn="always"?>
> <para> this is the explanation of the section. Two more
> lines to go.</para>
> <itemizedlist>
> <listitem> item1</listitem>
> <listitem> item2</listitem>
> <listitem> item3 </listitem>
> </itemizedlist>
> </section>
>
>
> I have tried keep-with-next, keep-together.within-page. Can someone
> help getting this to work?
> thank you.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]