hi @Jason ,
Can I convert xhtml to docx using XSLT through docx4j lib. If yes then can you please guide me how?
It is currently Fri Oct 02, 2026 11:51 am
News of ForumsWordprocessingMLPackage wordMLPackage;
try {
wordMLPackage = WordprocessingMLPackage.load(template);
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
Document wmlDocumentEl = documentPart.getJaxbElement(); // failing on this line with several NumberFormatExceptions
Body body = wmlDocumentEl.getBody(); // wmlDocumentEl is null
MergeDoc returned an error:Source 1 is unsupported document - contains reference to NULL imageTotal posts 10256 • Total topics 2894 • Total members 2109