Techical documentation
hdoc_to_odt.ant
Initiate the odt unzipped folder
Unzip the hdoc source file
Call generate_get_content_ant.xsl
Call get_content_ant
generate_get_content_ant.xsl
Get the rootfiles/rootfile/full-path in the META_INF of the hdoc and make an ant file with this value to know where is the content.xml: get_content.ant
get_content.ant
Call generate_get_resources_path_ant.xsl
If ods resources exist, I call a java class which unzip the ods file into a folder with the same name in the right place.
Call hdoc_to_odt_content.xsl
generate_get_resources_path_ant.xsl
Find pictures path and generate an ant file to copy each pictures into the right place.
Tip: each path is convert from tmp/tmp/pic.png to tmp@_@tmp@_@pic.png because odt unsupport folder hierarchy
hdoc_to_odt_content.xsl
Transform hdoc tag to odt tag.