Title and text on separate pages (DocBook or FOP problem?)

2003-05-07 Thread Niklas Koponen
Hi!

I'm using docbook and FOP to produce pdf documents.

For some reason I cannot get section titles and the following paragraph
on the same page. The problem occurs only when the title fits to the
bottom of the page and the paragraph goes to the next page.

I'm using Saxon for the stylesheet processing and I use
docbook-xsl-1.60.1. I am using a customization layer which defines the
properties. The layer is included as an attachment.

Is the problem with the FOP or with the docbook-xsl or my parameters?

Any help is appreciated.

-Niklas

-- 
Niklas Koponen   | Hietapellontie 3 B 7 | [EMAIL PROTECTED]
+358 40 757 1459 | 02400 KIRKKONUMMI| http://www.iki.fi/niklas.koponen

?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0

xsl:import href=/opt/xml/docbook-xsl-1.60.1/fo/docbook.xsl/

xsl:param name=paper.type select='A4'/
xsl:param name=ulink.show select='0'/
xsl:param name=ulink.footnotes select=1/
xsl:param name=hyphenate select='0'/
xsl:param name=section.autolabel select='1'/
xsl:param name=body.font.master select=12/
xsl:attribute-set name=section.title.properties
xsl:attribute name=text-alignleft/xsl:attribute
xsl:attribute
name=keep-with-next.within-linealways/xsl:attribute
/xsl:attribute-set
xsl:attribute-set name=component.title.properties
xsl:attribute name=text-alignleft/xsl:attribute
xsl:attribute
name=keep-with-next.within-columnalways/xsl:attribute
/xsl:attribute-set
!--
xsl:param name=title.margin.left select='-2.3cm'/
xsl:param name=header.rule select=1/
xsl:param name=double.sided select='0'/
xsl:param name=page.margin.inner select='4.6cm'/
--

/xsl:stylesheet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Title and text on separate pages (DocBook or FOP problem?)

2003-05-07 Thread J.Pietschmann
Niklas Koponen wrote:
For some reason I cannot get section titles and the following paragraph
on the same page. The problem occurs only when the title fits to the
bottom of the page and the paragraph goes to the next page.
See
 http://xml.apache.org/fop/faq.html#keep-with
You can try to hack the DocBook style sheets but I don't think
you'll make it, the solution has other drawbacks anyway.
Read: you are basically out of luck. Resort to manual labor and
add explicit page breaks before the affected title after the
document is finished.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]