[Legacy] DocBook to docx task

[ABANDONED] use pandoc (see use cases)

Description

Existing docx stylesheets []DocBook XSL stylesheets](http://docbook.sourceforge.net/) seems to be limited.

The idea is to process docbook to docx within ant script, using a custom processor based on docx4java.

The beginning of the development is commited on the sourceforge repository. See dev/src/java/net/sourceforge/ant4docbook/processors/DocxProcessor.java.

Some efforts are needed to continue the development and contributions are welcome.

DocBook to docx processing

Docx task parameters

Attribute Description Value Required
file docbook file yes
tofile output file <file name>.docx yes
Attribute Description Value Required
parameter template wordml <parameter name="wordml.template” value="path:to/docbook-xsl/roundtrip/template.xml”/> no

Examples

<project name="docbook-ant-task-to-docx" default="docbook-to-docx"> 

  <taskdef name="dbk" 
	   classname="net.sourceforge.ant4docbook.taskdefs.DocbookTask" 
	   classpath="PATH/TO/ant4docbook.jar"/> 

  <target name="docbook-to-docx"> 
    <dbk file="docbook.xml" tofile="generated-docx-file.docx" /> 
  </target> 
  
</project>