Page 1 of 1

Transform from CL versus from Transformation Scenario

Posted: Tue Aug 04, 2020 6:27 pm
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

Re: Transform from CL versus from Transformation Scenario

Posted: Thu Aug 06, 2020 7:50 am
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