DocBook to html task
Description
Process docbook to html within ant script, using DocBook XSL stylesheets.

Html task parameters
| Attribute | Description | Value | Required |
|---|---|---|---|
| file | docbook file | yes | |
| tofile | output file | <file name>.html | yes |
| stylesheet | custom stylesheet | <my-stylesheet>.xsl | no |
| css | custom css | <my-css>.css | no |
| parameters | output parameters | no |
| Attribute | Description | Value | Required |
|---|---|---|---|
| parameter | output parameters | no |
Examples
<project name="docbook-ant-task-to-html" default="docbook-to-html">
<taskdef name="dbk"
classname="net.sourceforge.ant4docbook.taskdefs.DocbookTask"
classpath="PATH/TO/ant4docbook.jar"/>
<target name="docbook-to-html">
<dbk file="docbook.xml" tofile="generated-html-file.html" />
</target>
<target name="docbook-to-html-with-many-parameters">
<dbk file="docbook.xml" tofile="generated-html-file.html" parameters="html.properties" />
</target>
<target name="docbook-to-html-with-some-parameters">
<dbk file="docbook.xml" tofile="generated-html-file.html">
<parameter name="section.autolabel" value="1" />
<parameter name="toc.section.depth" value="3" />
</dbk>
</target>
</project>