What is the template support in docx4j, I tried to use the following code to include the html at ${ScreenShot} in my word doc, but it didnt seem to work:
AlternativeFormatInputPart afiPart = new AlternativeFormatInputPart(new PartName("/hw.html"));
afiPart.setBinaryData(Docx4JExample.getContents("C:/DATA/Workspaces/UIToolingRCP/com.csc.fs.accel.ui.wordexport/a.html").getBytes());
afiPart.setContentType(new ContentType("text/html"));
Relationship altChunkRel = wordMLPackage.getMainDocumentPart().addTargetPart(afiPart);
CTAltChunk ac = Context.getWmlObjectFactory().createCTAltChunk();
ac.setId(altChunkRel.getId());
String includeHTML = XmlUtils.marshaltoString(ac, true);
System.out.println(includeHTML);
mappings.put("ScreenShot", includeHTML);
Thanks in advance for the help.