> -----Original Message-----
> From: Cedric Augustin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 05, 2006 10:15 AM

> We curently have a customized servlet to generate PDF for 
> various projects in production. This servlet is build on fop 
> version 0.20.5. We do not plan to switch to new version 
> unless version 1.0.

> [ERROR] org.apache.fop.apps.FOPException: The id "ln2350" 
> already exists in this document
> 
> I check and found no duplicate id in the fo file. A search in 
> the mailing list archive gave me J.Pietschmann answer about 
> this problem :
> 
> FOP 0.20.5 has a few bug which cause this error message even 
> for perfectly legal FO input.
> - Do not reference IDs in static content.
> - Do not reference IDs in table cells which are in rows with 
> a keep-together or keep-with-next property or which are 
> followed by a row with a keep-with-previous property.
> - Be careful referencing IDs in content which may be 
> rebalanced due to footnotes or due to span="all" blocks in a 
> multi-column layout.

Yes, FOP 0.20.5 is buggy here.

> My doc use two column layout with some page on one column, so 
> I think I am in trouble... :(

As a workaround, when I have a multi-column layout, I use a fo:block
nested in a spanned fo:block to define an id:

<fo:block span="all">
        <fo:block id="{generate-id(.)}">
        ...
        </fo:block>
</fo:block>

Hope that helps.

Pascal

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

Reply via email to