Posted this to the Yahoo DITA user group and didn't get much response. I am interested in knowing why this error occurs (i.e., what is actually going on or NOT going on under the covers) as much as how to correct it and get my build working.
We are upgrading from DITA-OT1.6 to 2.4.5 and migrating plugins and build files and so on, and I have hit a snag with an XSLT Ant task that we have been running as part of a TOCJS build for months with no problems.
<xslt in="${args.input}" style="${resources}/getFigs.xsl"
out="${resources}/figures.txt">
</xslt>
The build fails, with java.io.FileNotFoundException: C:\repos\ICW-OT-upgrade\ICW_TTWCS_GUI-build-245\source\scciLearningMap.dtd (The system cannot find the file specified).
The input file is a specialized map with the following declaration:
<!DOCTYPE map PUBLIC "urn:pubid:teamscci.com:doctypes:icw:scciLearningMap" "scciLearningMap.dtd">
Looks like Ant/Saxon is not using the catalog file.
I tried adding an xmlcatalog element, but that did not work either, though I may have had the syntax wrong. I added this after the properties in the build file:
<xmlcatalog id="dita.catalog">
<catalogpath path="${dita.plugin.org.dita.base.dir}/catalog-dita.xml"/>
</xmlcatalog>
And added this in the <xslt> task itself:
<xmlcatalog refid="dita.catalog"/>