Hi Eric, Lewis, Eric wrote: > Hi all > > I'm trying to apply the orphans and widows formatting rules, but I think > I've got something wrong.
The orphans and widows properties don’t apply to tables, but only to paragraphs. To achieve a similar effect for tables, you can use the fox:orphan-content-limit extension defined by FOP: http://xmlgraphics.apache.org/fop/0.94/extensions.html#widow-orphan-content-limit Don’t forget to add the namespace declaration to the root element. HTH, Vincent > Here's one example: > > <xsl:template match="whatever"> > <fo:block orphans="4" widows="4"> > <fo:table table-layout="fixed" width="100%" padding-before="5mm"> > <fo:table-column column-width="25%" /> > <fo:table-column column-width="25%" /> > <fo:table-column column-width="50%" /> > <fo:table-body> > <xsl:apply-templates /> > </fo:table-body> > </fo:table> > </fo:block> > </xsl:template> > > > Here's my output: > (...) > US2003145716 A1 07.08.2003 NONE > EP0717216 A1 04.06.1997 CN1414566 A 30.04.2003 > EP1271553 A2 02.01.2003 > ---- Page break ---- > US2003128586 A1 02.01.2003 > JP2003109386 A 11.04.2003 > > > Clearly, it's not doing what I want :-) > The question is: Why? > > > Thanks for any help > Eric -- Vincent Hennebert Anyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
