DocBook Transformation XML to PDF Missing Images

Here should go questions about transforming XML with XSLT and FOP.
armin123
Posts: 2
Joined: Wed Dec 19, 2007 6:25 pm

DocBook Transformation XML to PDF Missing Images

Post by armin123 »

When I do a transformation of a singe xml file to pdf, the images
referenced appear in the generated pdf file. When I do a transformation
of all my xml files to one pdf file the images referenced disappear. I am using xinclude to break my files down. I've tried using gif, jpeg and the file format does not matter.

The images appear with no problems when I do a transformation to html
and javahelp.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi,

We made some simple tests with xincluded Docbook documents which refer images and we could not reproduce the problem.
Do you have the xinclude support activated from Oxygen Preferences -> XML Parser page : "Enable XInclude support"?
If you do can you send us some sample files to reproduce the problem at: support at oxygenxml dot com ?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
armin123
Posts: 2
Joined: Wed Dec 19, 2007 6:25 pm

Post by armin123 »

I have xinclude enabled. I will send you some sample files for you to reproduce this problem. Thank you.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Due to a bug in the Xerces parser XInclude references are not resolved correctly if they are nested on more than one level and at least on one of the nesting levels the included file is not in the same folder as the including file.

There is a workaround in oXygen: keep the included file(s) which are not in the same folder as the direct parent file which includes it (them) opened in an editor panel in oXygen. If the file is kept open in an editor panel in oXygen the parser will use the content of the editor panel instead of reading it from disk/requesting it from a remote server. However we will have to wait for a clean solution from the Xerces development team which we expect to fix the bug.


Regards,
Sorin
Post Reply