Chain transformations, dita + HTML5
Posted: Mon Jun 26, 2023 2:55 pm
Hello,
I'm seeking a method to apply consecutive changes to a project using a single transformation type (DITA first, HTML5 after from the modified DITA source). I've been advised to use an extension point to execute an ant target ("depend.preprocess.pre") and I have started designing this plugin. I don't get why I keep having an error that "the Target "addstring" does not exist in the project "DOST". It is used from target "preprocess2". while I have declared it in my build xml file:
Because the plugin.xml uses a transtype custom(html5-addstring), I have used "dita2html5-addstring" in the target.
Right now, my goal is simple, getting a simple plugin prototype used to trigger a transformation in DITA content before publishing the source as HTML5.
I'm currently struggling with this plugin and any tips would be very appreciated
I'm seeking a method to apply consecutive changes to a project using a single transformation type (DITA first, HTML5 after from the modified DITA source). I've been advised to use an extension point to execute an ant target ("depend.preprocess.pre") and I have started designing this plugin. I don't get why I keep having an error that "the Target "addstring" does not exist in the project "DOST". It is used from target "preprocess2". while I have declared it in my build xml file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<project name="com.xxx.beforeafter" default="addstring">
<target name="dita2html5-addstring">
<xslt basedir="${args.input.dir}"
includes="**/*.dita"
destdir="${dita.temp.dir}"
style="${dita.plugin.com.xxx.beforeafter.dir}/xsl/addstring.xsl"
classpathref="dita-ot-classpath"
extension=".dita"
force="true"/>
</target>
</project>
Code: Select all
<plugin id="com.xxx.beforeafter">
<require plugin="org.dita.base"/>
<feature extension="dita.conductor.target.relative" file="build.xml"/>
<feature extension="depend.preprocess.pre" value="addstring"/>
<transtype name="html5-addstring" extends="html5"
transtype="true"
description="HTML5 transformation with string addition"/>
</plugin>
I'm currently struggling with this plugin and any tips would be very appreciated
