Re: Do Fop have problems with keep-with-...?
Steinar Bang [EMAIL PROTECTED]: J.Pietschmann [EMAIL PROTECTED]: [snip!] If you are generating FO from DocBook, this will probably be hard, or harder. You can try to fiddle with the docbook style sheets to achieve this effect. Some workaround around those lines, is what I will try tomorrow. What I did was to put beginpage/ elements at appropriate places in the DocBook XML source, to force line breaks _before_ the problematic sections. This is a hack, because it is vulnerable to changes to the XML source. But it is less ugly than the other hacks on the table, and I'll remove the beginpage/ elements when Fop supports keep-*. I noticed that the DocBook XSL style sheets didn't have a template for beginpage, so I put the following in my local FO-producing style sheet: xsl:template match=beginpage fo:block break-after=page/ /xsl:template
Do Fop have problems with keep-with-...?
Platform: Intel PIII, debian testing, Blackdown Java SDK 1.3.1, Saxon 6.4.4, DocBook XML 4.1.2, DocBook-XSL 1.48, Fop-0.20.3rc Does Fop still have a problem with keep-with-*? Searches on the net seem to indicate that this was the case as late as February this year: http://lists.w3.org/Archives/Public/www-xsl-fo/2002Feb/0064.html If the problem still persists, does anyone know of a good workaround? I have a problem with the title of a section, in a DocBook XML article, not sticking with the rest of the section, when a page break is inserted. Since what I'm writing is a step-by-step cookbook with screen shots, this results in pages consisting of a large image (a screen dump), the descriptive text for that image, and the section title for the next screen dump. And this looks rather silly. More info on what I have done and tried, can be found in the thread starting with: http://lists.oasis-open.org/archives/docbook-apps/200204/threads.html#00221 Thanx! - Steinar
Re: Do Fop have problems with keep-with-...?
Steinar Bang wrote: Does Fop still have a problem with keep-with-*? Yes, and this will persist for some time. I have a problem with the title of a section, in a DocBook XML article, not sticking with the rest of the section, when a page break is inserted. The keep-with-* properties work on table rows. The usual recommendation is to use a two row, one column blind table and put the title in the first and the first paragraph in the second row. If you are generating FO from DocBook, this will probably be hard, or harder. You can try to fiddle with the docbook style sheets to achieve this effect. If you are at it, you can fix a few other problems DocBook generated have (fo:table-and-caption, references to fo:page-sequence and to fo:block with a break-before) Your alternative is to use a commercial FO processor. J.Pietschmann
Re: Do Fop have problems with keep-with-...?
J.Pietschmann [EMAIL PROTECTED]: [snip!] If you are generating FO from DocBook, this will probably be hard, or harder. You can try to fiddle with the docbook style sheets to achieve this effect. Some workaround around those lines, is what I will try tomorrow. I won't fiddle with the DocBook XSL style sheets directly, but I will replace a template or several templates, in a local XSL style sheets. The local style sheet is already in place. This is where I set the page size to be a4 instead of the default letter, and this is where I override the standard table template, to fix stuff. If you are at it, you can fix a few other problems DocBook generated have (fo:table-and-caption, Already done in the local style sheet, see http://marc.theaimsgroup.com/?l=fop-userm=101829073309486w=2 references to fo:page-sequence and to fo:block with a break-before) What are the problems with these? I haven't run into them yet. Your alternative is to use a commercial FO processor. Or PassiveTex, perhaps...? http://www.hcu.ox.ac.uk/TEI/Software/passivetex/ But I think I would miss the SVG rendering of Fop.