Page 1 of 1

PDF transformation failure - Target does not exist in DOST file

Posted: Fri Dec 02, 2016 7:51 pm
by Julie P
Hi,

I am new to DITA OT and Oxygen and encountered a problem I cannot fix.
Until now I was using one plugin from the PDF plugin generator of Jarno Elovirta. Today I used "Dita for Print" book to create a new plugin, and followed the guidelines from p.41, for creation and installation of a new plugin. I didn't manage to integrate the new plugin, but I did the command bin\dita -install from DITA-OT2.x, just in case.
Unfortunately, now when I try to publish my contents with my old plugin (that used to work well) I have this error message:
"Target "transform.fo2pdf.xep.init" does not exist in the project "DOST". It is used from target "transform.topic2fo.init".

I checked which files had been last modified (the modification time around the time I launched my commands for the new plugin), and the files that have changed are in plugins>com.elovirta.dita.markdown, more specifically the build.xml and in the xsl folder: dita2markdown.xsl and map2markdown-cover.xsl.
I have no idea where to look for nor why trying to install a new plugin broke everything.
I would be very grateful if anyone can help, thank you.

Julie

Re: PDF transformation failure - Target does not exist in DOST file

Posted: Mon Dec 05, 2016 1:10 pm
by Radu
Hi Julie,

Please see some answers below:
Until now I was using one plugin from the PDF plugin generator of Jarno Elovirta.
The current PDF plugin generator creates plugins for DITA Open Toolkit 2.x which you seem to be using for publishing. So it's OK. Do you use the DITA OT 2.x bundled with Oxygen or an external DITA OT 2.x installation?
Today I used "Dita for Print" book to create a new plugin, and followed the guidelines from p.41, for creation and installation of a new plugin.
The "Dita For Print" book was created and tested with DITA Open Toolkit 1.8, so it may contain customization ideas which do not work out of the box with the newer DITA OT 2.x.
I didn't manage to integrate the new plugin, but I did the command bin\dita -install from DITA-OT2.x, just in case.
How do you know you did not manage to install the plugin? Was an error reported? If so, what was the error?
If you use the DITA OT 2.x which comes bundled with Oxygen, you can also run the integrator from inside Oxygen:

https://www.oxygenxml.com/doc/versions/ ... lugin.html
Unfortunately, now when I try to publish my contents with my old plugin (that used to work well) I have this error message:
"Target "transform.fo2pdf.xep.init" does not exist in the project "DOST". It is used from target "transform.topic2fo.init".
I think that somehow the integration process which integrates all DITA OT plugins broke at some point probably because of your plugin.
You can try removing the newest added plugin folder and run again the integration.
I checked which files had been last modified (the modification time around the time I launched my commands for the new plugin), and the files that have changed are in plugins>com.elovirta.dita.markdown, more specifically the build.xml and in the xsl folder: dita2markdown.xsl and map2markdown-cover.xsl.
Yes, the integration automatically installs all plugin and in doing this also modifies various files in various places, this is normal.

Regards,
Radu

Re: PDF transformation failure - Target does not exist in DOST file

Posted: Mon Dec 05, 2016 2:17 pm
by Julie P
Hi Radu,

Thank you very much for your quick answer.

I followed your advice and ran again the integration process without the newest plugin, and it worked, I am able to publish pdf contents again! :D Thank you.

To answer your questions, I use the DITA OT 2.x bundled with Oxygen.
As for the new plugin, I said I didn't manage to install it because from DITA OT 2x I ran the command: bin/dita -install (plugin folder) and I got the error message "src must be a directory. Use nested fillets instead". Then, I did just -install and I didn't have any message. I thought an integrator.xml was supposed to be created in the new plugin folder, that's why I thought it didn't work. I will try from Oxygen next time, thank you for the advice.

Regards,

Julie

Re: PDF transformation failure - Target does not exist in DOST file

Posted: Mon Dec 05, 2016 2:36 pm
by Radu
Hi Julie,

Glad you managed to fix the problem.
The dita -install can be used to install a plugin from a ZIP file. So you should have had a ZIP containing the plugin folder.
http://www.dita-ot.org/dev/dev_ref/plug ... lling.html

Regards,
Radu