RE: FOPException: The id N1056F already exists in this document

2005-04-05 Thread Riz Virk
I've actually noticed that problem (id xxx already exists) even when we have 
been able to manually verify that an id hasn't been used twice in the document. 
 
fop seems to have a bug that if a block spans pages,and that block has an id 
associated with it, then fop  tries to create two destinations with the same 
id, which triggers the error above.   
 
The only way were able to resolve it was to hack the fop source code to fix it 
...
 
Thanks
Riz
 
 

Rizwan Virk
CTO
CambridgeDocs
[EMAIL PROTECTED]
personal: [EMAIL PROTECTED]
 



From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Tue 4/5/2005 1:56 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOPException: The id N1056F already exists in this document



[EMAIL PROTECTED] wrote:
 Is the ID assigned in the source file or generated (perhaps by
 generate-id) at run time? If the former, then I would guess that your
 problem arises from one or more index terms not having unique IDs in the
 source file.

DocBook uses generate-id().

The problem is most likely due to relayouting an object, which in turn
is caused either by a keep property or column rebalancing because of a
span=all block.

Unfortunately, the DocBook XSLT creates an ID for almost every FO,
whether it is referenced or not. Furthermore, there seems to be no way
to get rid of the quite liberally used keeps.

Common suggestions:
- Don't use multicolumn layouts with DocBook.
- Try to filter out unreferenced IDs, for example with another XSL
   transformation.
- Insert forced page breaks at various points and see whether the
   problem goes away. Examining the DocBook XSLT output for the
   ID in question may provide hints where forced page breaks could
   be useful.
- Kill the ID manually, if it's a one-off document generation.
- If you are stuck, for example because the ID is referenced, use
   another XSLFO processor.

Geez, this should go into the FAQ sometimes.

J.Pietschmann

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




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



RE: FOPException: The id N1056F already exists in this document

2005-04-05 Thread Glen Mazza
I don't know about the 0.20.5 code base, but the
upcoming 1.0 code base raises the duplicate-id error
message only while parsing the input stream (before
any breaking up the formatting object into blocks
occurs) so this error should not occur in future
releases.  In 1.0, ID's can (and are) subsequently
attached to multiple layout blocks--that is not an XSL
error.  ID's just cannot be duplicated on multiple
FO's in the input.

Glen


--- Riz Virk [EMAIL PROTECTED] wrote:
 I've actually noticed that problem (id xxx already
 exists) even when we have been able to manually
 verify that an id hasn't been used twice in the
 document. 
  
 fop seems to have a bug that if a block spans
 pages,and that block has an id associated with it,
 then fop  tries to create two destinations with the
 same id, which triggers the error above.   
  
 The only way were able to resolve it was to hack the
 fop source code to fix it ...
  
 Thanks
 Riz
  


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



Re: FOPException: The id N1056F already exists in this document

2005-04-05 Thread Tommy Reynolds
Uttered Riz Virk [EMAIL PROTECTED], spake thus:

 The only way were able to resolve it was to hack the fop source code to fix 
 it ...

I'd like a copy of the patch, or the patched version.  Got URL?


pgpVNMngnToIw.pgp
Description: PGP signature