I would like to convert either an html or xhtml document (preferably with styles) to Microsoft .doc and/or .docx format.
There seem to be plenty of examples for doin
docx4j 2.8.0 supports converting XHTML documents and fragments to docx content. Disclosure: I wrote some of the code.