I've encountered a situation where a human-generated Word Document contains multiple bookmarks with the same name. This causes a duplicate ID error in the generated FO when attempting to transform it to PDF.
The extracted fragment of flat opc xml may look like this:
- Code: Select all
<w:bookmarkStart w:id="1" w:name="d0e124"/>
<w:bookmarkEnd w:id="1"/>
...
<w:bookmarkStart w:id="0" w:name="d0e124"/>
<w:bookmarkEnd w:id="0"/>
When this document is transformed to FO for PDF the XSLT generates two fo:inline's with the same id:
<fo:inline ...