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 Thu Sep 17, 2026 10:28 pm
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 10255 • Total topics 2893 • Total members 2109