When I run your HTML through the ConvertInXHTMLFragment sample, the result is:
Using xml Syntax Highlighting
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" >
<w:body>
<w:p>
<w:pPr>
<w:ind w:left="0"/>
<w:jc w:val="left"/>
<w:textAlignment w:val="auto"/>
</w:pPr>
<w:r>
<w:rPr>
<w:color w:val="000000"/>
<w:sz w:val="22"/>
</w:rPr>
<w:t>Test 1
</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:ind w:left="0"/>
<w:jc w:val="left"/>
<w:textAlignment w:val="auto"/>
</w:pPr>
<w:r>
<w:rPr>
<w:color w:val="000000"/>
<w:sz w:val="22"/>
</w:rPr>
<w:t>Test 2
</w:t>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:code="1" w:h="15840" w:w="12240"/>
<w:pgMar w:left="1440" w:bottom="1440" w:right="1440" w:top="1440"/>
</w:sectPr>
</w:body>
</w:document>
Parsed in 0.003 seconds, using
GeSHi 1.0.8.4
Interpreting this, w:spacing/@w:after is not being set.
So your spacing will be coming from your default paragraph style (which applies as no style is specified).
After today's
https://github.com/plutext/docx4j/commi ... 999a712e11 you can use style="margin-bottom: 5mm;" to control this from your XHTML.