Hi all,
with the commit 1754 the method getNumberXmlNode of the class AbstractHtmlExporter changed his signature but the docx2xhtmlNG2.xslt still uses the old signature.
Am I missing something?
Thanks,
Emiliano Albiani
It is currently Sat Feb 22, 2025 7:31 pm
for (Object key : templateProperties.keySet()) {
textValue = textValue.replaceAll(key.toString().toUpperCase(),(String) templateProperties.get(key));
}
String docx= "/report_templates/MyDoc.xml";
JAXBContext jc = Context.jcXmlPackage;
Unmarshaller u = jc.createUnmarshaller();
u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler());
InputStream iStream = getClass().getResourceAsStream(docx);
org.docx4j.xmlPackage.Package wmlPackageEl = (org.docx4j.xmlPackage.Package)((JAXBElement)u.unmarshal(new javax.xml.transform.stream.StreamSource(iStream))).getValue();
org.docx4j.convert.in.FlatOpcXmlImporter xmlPackage = new org.docx4j.convert.in.FlatOpcXmlImporter( wmlPackageEl);
WordprocessingMLPackage wordMLPackage = (WordprocessingMLPackage)xmlPackage.get();
Total posts 10142 • Total topics 2852 • Total members 2083