Page 1 of 1

Failed to merge ditaval files

Posted: Mon Apr 30, 2018 4:37 pm
by jasone
In oXygen 19.1, trying to build using the DITA Map HTML5 scenario. Only one change to it: in the Filters tab I selected "Use DITAVAL file" and pointed to my own ditaval. The build fails with this error:

Transformation failed. C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT2.x\plugins\org.dita.base\build_preprocess.xml:45: Failed to run pipeline: Failed to merge ditaval files: C:\SVN\MV\ditavals\ditaval.dtd (The system cannot find the file specified)

I have oXygen 18.1 and 19.1 installed. In the 19.1 installation there are three ditaval.dtd files:

C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT\dtd\ditaval\dtd
C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT2.x\plugins\org.oasis-open.dita.v1_2\dtd\ditaval\dtd
C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT2.x\plugins\org.oasis-open.dita.v1_3\dtd\ditaval\dtd

If I copy ditaval.dtd from C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT\dtd\ditaval\dtd and paste it in the folder with my ditaval, the book builds.

In Preferences->DITA I'm using Built-in DITA OT 2.x.

Why can't it find ditaval.dtd? In Preferences->Document Type Association/Locations I tried using the following path as a Custom framework, and adding it to the "Additional frameworks directories" but neither worked:

C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT2.x\plugins\org.oasis-open.dita.v1_3\dtd\ditaval\dtd

Re: Failed to merge ditaval files

Posted: Mon Apr 30, 2018 5:28 pm
by adrian
Hi,

Check in Preferences->Document Type Association if you have DITAVAL in the list and if it is enabled.

Regards,
Adrian

Re: Failed to merge ditaval files

Posted: Wed May 02, 2018 9:27 pm
by jasone
I do have DITAVAL in that list, and it is enabled.

Re: Failed to merge ditaval files

Posted: Thu May 03, 2018 12:24 pm
by Radu
Hi,

If your DITAVAL file contains a DOCTYPE DTD declaration the publishing fails using DITA OT 2.x.
The problem will be fixed in DITA OT 3.0.4:

https://github.com/dita-ot/dita-ot/pull/2922

but you should try to remove the DOCTYPE declaration from the DITAVAL file to make the publishing work again.

Regards,
Radu

Re: Failed to merge ditaval files

Posted: Fri Jul 06, 2018 6:03 pm
by jasone
Thank you, that worked!