The XSL transformation
The second part of the ANT script is an XSL transformation. It uses an XSL transformation sheet named model.xslt and located in the xslt folder. The goal of this transformation is to wrap all the HDoc content generated so far in a valid HDoc structure, with html, head and body tags. Of course, during this process, the root tag that had been artificially added by the java parser is removed. If you want to see more closely what the XSL looks like and or want to improve it, feel free to open the model.xsl file. The output is set to the xslt/out directory by the ANT script.