Ant - Build file for Docbook using Saxon

By xngo on June 29, 2019

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="docbook_html" name="Docbook">
 
    <!--
        Change the followings according to your settings:
            -Path of saxon.jar
            -Path of docbook.xsl
            -Your xml docbook file(your_docbook.xml).
    -->
    <target name="docbook_html">
 
        <java jar="lib/saxon/saxon.jar"
                    output="your_docbook_output.html"
                    fork="true">
 
            <arg value="your_docbook.xml"/>
            <arg value="lib/docbook-xsl/html/docbook.xsl"/>
        </java>
 
    </target>
 
</project>

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.