Failed to merge ditaval files

Post here questions and problems related to editing and publishing DITA content.
jasone
Posts: 10
Joined: Wed May 17, 2017 8:23 pm

Failed to merge ditaval files

Post 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
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Failed to merge ditaval files

Post by adrian »

Hi,

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

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
jasone
Posts: 10
Joined: Wed May 17, 2017 8:23 pm

Re: Failed to merge ditaval files

Post by jasone »

I do have DITAVAL in that list, and it is enabled.
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

Re: Failed to merge ditaval files

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jasone
Posts: 10
Joined: Wed May 17, 2017 8:23 pm

Re: Failed to merge ditaval files

Post by jasone »

Thank you, that worked!
Post Reply