Transform from CL versus from Transformation Scenario

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Transform from CL versus from Transformation Scenario

Post by ann.jensen »

Hi,
I am running a transform using a custom DITA-OT based on DITA-OT 3.4.1, using the com.oxygenxml.dita.metrics.report plugin and my DITA uses a custom DTD. I added path to custom DTDs into \plugins\org.dita.base\catalog-dita.xml. My transforms works fine when using an Oxygen transformation scenario but fails when I run from command line using dita.bat command because it cannot find the custom DTDs.

Code: Select all

Loading stylesheet C:\Users\<name>\AppData\Oxygen XML Editor 20\frameworks\dita\<custom dita-ot-3.4.1>\plugins\com.oxygenxml.dita.metrics.report\report.xsl
     [xslt] : Error! I/O error reported by XML parser processing file:/C:/Users/<name>/AppData/OxygenFiles/TestMetricsReportPrj/rootMap.ditamap: C:\Users\<name>\AppData\OxygenFiles\TestMetricsReportPrj\<customDTD.dtd> (The system cannot find the file specified) Cause: java.io.FileNotFoundException: C:\Users\<name>\AppData\OxygenFiles\TestMetricsReportPrj\<customDTD.dtd> (The system cannot find the file specified)
I cannot see any differences in the configuration of the 2 transforms.
Any advice appreciated,
Regards,
Ann
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Transform from CL versus from Transformation Scenario

Post by Radu »

Hi Ann,

The ANT catalog resolver is buggy, when we run ANT from Oxygen we have certain patches which fix this problem.
There is a long discussion here:

https://github.com/dita-ot/dita-ot/issues/3142

with links to certain possible workarounds:
https://dita-users.groups.io/g/main/top ... 3261#44287

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply