I've followed this user guide to implement condition and repeat : https://www.docx4java.org/blog/2018/04/ ... a-binding/.
I've installed the no-xml authoring and set up some conditions and repeat tags in my docx document. In my code I've written :
Answers answers = new Answers();
addAnswer(answers,"key_Sn", "valuexx"); //the condition tag
addAnswer(answers,"PleaseRepeat_xF", "2"); //the repeat tag
Docx4J.bind(wordMLPackage, answers, Docx4J.FLAG_BIND_INSERT_XML + Docx4J.FLAG_BIND_BIND_XML);
So the conditional part is working but I've never managed to make the repeat part's working. The selected text seems disappearing. Repeating 0 times. Is it the right way to implement it ? Adding a "number" seems the natural thing to do.