Hi, Peter, 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.
Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Peter Bittner <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 04/05/2005 10:52 AM Please respond to [email protected] To [email protected] cc Subject FOPException: The id "N1056F" already exists in this document Hi there! I am using DocBook/XML for a while to create HTML and PDF documents from one DocBook source file. A colleague of mine now has added a whole bunch of index terms (such as "<indexterm><primary>MyTerm</primary></indexterm>" to enrich the document's index) in the whole document. What now results when I try to compile the document using FOP (that is, FOP 0.20.5) to create a PDF document is a strange error I have never come across before: [ERROR] org.apache.fop.apps.FOPException: The id "N1056F" already exists in this document The *really* strange thing about this is that Saxon runs without any problems and creates an HTML version of my DocBook document. So there is obviously no real error, mistake or whatsoever in the source itself. I have run FOP in debug mode (using the -d parameter) which yielded the output attached to this message. It contains the Exceptions generated - obviously - by the Xalan classes. Does anybody know a solution to this problem? Cheers, Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[DEBUG] Input mode: [DEBUG] xslt transformation [DEBUG] xml input file: fs_v1.xml [DEBUG] xslt stylesheet: C:\Programme\DocBook\docbook-xsl\TWDocBook-fo.xsl [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: fs_v1.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/c:/Dokumente und Einstellungen/bittner/Eigene Dateien/Projekte/JSW/doc/fs/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser file:///C:/Programme/DocBook/docbook-xsl/fo/docbook.xsl; Zeile #241; Spalte #16; Making portrait pages on A4 paper (210mmx297mm) [INFO] building formatting object tree [INFO] setting up fonts [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. [INFO] JAI support was not installed (read: not present at build time). Trying to use Jimi instead Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [ERROR] property - "background-position-horizontal" is not implemented yet. [ERROR] property - "background-position-vertical" is not implemented yet. Error creating background image: Error creating FopImage object (http://docbook.sourceforge.net/release/images/draft.png) : Jimi image library not available [INFO] [1] [INFO] [2] [INFO] [3] [DEBUG] Last page-sequence produced 3 pages. [INFO] [4] [DEBUG] Last page-sequence produced 1 pages. [INFO] [5] [DEBUG] Last page-sequence produced 1 pages. [INFO] [6] [DEBUG] Last page-sequence produced 1 pages. [INFO] [7] [DEBUG] Last page-sequence produced 1 pages. [INFO] [1] [INFO] [2] [INFO] [3] [INFO] [4] [INFO] [5] [INFO] [6] [INFO] [7] [INFO] [8] [WARNING] table-layout=auto is not supported, using fixed! [INFO] [9] [INFO] [10] [INFO] [11] [INFO] [12] [INFO] [13] [DEBUG] Last page-sequence produced 13 pages. [INFO] [14] [INFO] [15] [INFO] [16] [INFO] [17] [INFO] [18] [INFO] [19] [INFO] [20] [WARNING] table-layout=auto is not supported, using fixed! [INFO] [21] [INFO] [21] [ERROR] org.apache.fop.apps.FOPException: The id "N1056F" already exists in this document org.apache.fop.apps.FOPException: org.apache.fop.apps.FOPException: The id "N1056F" already exists in this document at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) --------- java.lang.RuntimeException: org.apache.fop.apps.FOPException: The id "N1056F" already exists in this document at org.apache.xalan.transformer.TransformerImpl.run(Unknown Source) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) --------- java.lang.RuntimeException: org.apache.fop.apps.FOPException: The id "N1056F" already exists in this document at org.apache.xalan.transformer.TransformerImpl.run(Unknown Source) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
