On Oct 31, 2007, at 11:38, m_dieu wrote:

Hi


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">&nbsp;</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?

Can you check (just to make sure) whether there is a force-page-count property specified on the fo:page-sequence? If this would force the sequence to end on an odd page, this /could/ explain why you get an extra blank page.

OTOH, it's *very* difficult to judge from an XSLT fragment. Can you perhaps post the FO-output of the transform? To obtain this via the command-line, use:
fop -xml 'test.xml' -xsl 'test.xsl' -foout 'test.fo'

Cheers

Andreas


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

Reply via email to