Dita catalog issue in ANT script
Posted: Tue Aug 30, 2022 3:53 pm
Hello,
During HTML5 output processing (dita-ot-3.6.1), I would like to preprocess ditamap.
So I create a specific plugin using depend.preprocess.pre extension point.
In a ANT script I use the following xslt pipeline:
But I get an error launching publication:
It seems that the dita catalog is not taken in account. If I remove doctype in my ditamap it works!
For information it works well with dita-ot-3.5.x.
Any help will be appreciate. Thanks.
Nicolas
During HTML5 output processing (dita-ot-3.6.1), I would like to preprocess ditamap.
So I create a specific plugin using depend.preprocess.pre extension point.
In a ANT script I use the following xslt pipeline:
Code: Select all
<pipeline>
<xslt style="${dita.plugin.com.xxx.preprocess.dir}/xsl/MergeMap.xsl"
in="${args.input}"
out="${args.input}">
<param name="vrm-version" expression="${vrm-version}"/>
<param name="vrm-modification" expression="${vrm-modification}"/>
<param name="pubprefix" expression="${pubprefix}"/>
<xmlcatalog refid="ditaCatalog"/>
</xslt>
</pipeline>
Code: Select all
[pipeline] Loading stylesheet C:\xxx\dita-ot-3.6.1\plugins\com.xxx.wh-preprocess\xsl\MergeMap.xsl
[pipeline] Processing file:/C:/xxx/inputs/xxx.ditamap
[pipeline] Recoverable error
[pipeline] I/O error reported by XML parser processing
[pipeline] file:/C:/xxx/inputs/xxx.ditamap:
[pipeline] C:\xxx\inputs\map.dtd (The system cannot find the file specified)
[pipeline] Failed to transform document: Failed to transform document: I/O error reported by XML parser processing file:/C:/xxx/inputs/xxx.ditamap: C:\xxx\inputs\map.dtd (The system cannot find the file specified)
For information it works well with dita-ot-3.5.x.
Any help will be appreciate. Thanks.
Nicolas