I am trying to get docx4j to work for me to create Resumes based on a template.
I adapted an existing resume and added content-control.
The first time I ran the ContentControlBindingExtension example using my files I got an exception stating that CTSmartTagRun did not have the @XmlRootElement annotation.
So I downloaded the source, added the annotation (@XmlRootElement(name = "CTSmartTagRun")) to the CTSmartTagRun.java class and rebuild the jar.
Than I ran the example again and this time it succeeded.
The only problem is that the generated files are invalid, meaning that Word cannot open them. I can open them in an xml editor and see the xml.
Maybe the problem is with adding an incorrect @XmlRootElement or my template is incorrect.
*Also the repeat for bulletpoints doesn't seem to work either, but I haven't looked into taht in great detail so it could be I just setup the template incorrect.
Anyway here are the files I am using, hopefully you can help me out.
http://dl.dropbox.com/u/4339608/docx/CV ... imple.docx : This is the template with only a plain text control
http://dl.dropbox.com/u/4339608/docx/CV ... cessed.xml : The preprocessed version
http://dl.dropbox.com/u/4339608/docx/CV ... cessed.xml : The processed version
http://dl.dropbox.com/u/4339608/docx/CV_bound_nons.docx : Thsi is the template with a plain text control and a repeat for a bullet list
http://dl.dropbox.com/u/4339608/docx/CV ... cessed.xml : The preprocessed version
http://dl.dropbox.com/u/4339608/docx/CV ... cessed.xml : The processed version