Thanks for the quick reply!
I changed my code into:
(...)
<xsl:for-each select='XSLCollectionWrapper'>
<fo:block keep-with-next="always">
<fo:table table-layout='fixed' width='180mm'>
(...)
</fo:table>
</fo:block>
<fo:block line-height='12px' text-align='left'
font-weight='bold'><xsl:apply-templates select='categoryname'/>:</fo:block>
<fo:block>
<xsl:if test="categoryname!=''">
<xsl:apply-templates select='categoryname'/>
<fo:block break-after="page"> </fo:block>
</xsl:if>
</fo:block>
--END OF THE FOP
So what happens is, that in the pdf the categoryname appears twice at the
end of the document. But only for the pages 1-7. But why are there still
empty pages even when there is no categoryname printed on the pdf?
Jeremias Maerki-2 wrote:
>
> That's a known bug:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=40230
>
> See also: http://xmlgraphics.apache.org/fop/knownissues.html
>
> You can easily work around this in XSLT. Just test for the last
> XSLCollectionWrapper element and don't create the break in that case.
>
> Jeremias Maerki
>
>
>
> On 31.10.2007 10:29:19 m_dieu wrote:
>>
>> Hi,
>>
>> I've got some problems by using the break-after property.
>> First of all here the code:
>>
>> (...)
>> <xsl:for-each select='XSLCollectionWrapper'>
>> <fo:block keep-with-next="always">
>> <fo:table table-layout='fixed' width='180mm'>
>> (...)
>> </fo:table>
>> </fo:block>
>> <fo:block break-after="page"> </fo:block>
>> </xsl:for-each>
>> --END OF THE FOP
>>
>>
>> The Collection XSLCollectionWrapper contains 7 elements, but my PDF
>> becomes
>> generated with 9 pages?!? Page 8 and 9 are empty!
>>
>> Does someone has any idea? Thanks in advance...
>> --
>> View this message in context:
>> http://www.nabble.com/Empty-pages-after-%22break-after%22-tf4723712.html#a13505459
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Empty-pages-after-%22break-after%22-tf4723712.html#a13506238
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]