ding="UTF-8"?&gt;
&lt;dummy&gt;
  &lt;import file="calljava-antcode.xml"/&gt;
&lt;/dummy&gt;

calljava-antcode.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project default="validateWithJava"&gt;
  &lt;target name="validateWithJava"&gt;
    &lt;java classname="com.example.sampleValidation"&gt;
      &lt;!-- The class was added to dost.class.path (the DITA-OT classpath) --&gt;
      &lt;classpath refid="dost.class.path"/&gt;
    &lt;/java&gt;
  &lt;/target&gt;
&lt;/project&gt;</code></pre>
</div>
</d