Hi there!
I am developing and application that allows users to create OpenDoPE compliant templates using a word-addin (based on office-js api) and I have some questions regarding docx4j and OpenDoPE processing:
1. Is it possible to "re-run" the processing of a template with repeats? So when the repeat has already been expanded and I add new rows to my data, is it possible to run docx4j again on that document to reflect that new row in the repeating section? Or do I have to start with the original template again? In the document that has already been processed I can see that the od:repeat gets replaced with od:rptd. Does that mean that this repeat cannot be run again?
2. In my add-in I add the XPath for the ConentControls that are inside a repeat to the odx:xpaths in the custom xml part and I set the corresponding <w:tag w:val="od:xpath=xxx"/>. After running the binding I get n repeats of the inner ContentControl but the value does not change accordingly. All "clones" have the same <w:tag w:val="od:xpath=xxx"/>. Do I have to add a standard w15 binding to the inner ContenControl too to make it work? When I set a breakpoint in OpenDoPEHandler.DeepTraversor.processDescendantBindings I can see that none of the codeblocks inside the if (binding == null)... seems to apply.
Thanks and best regards,
Marius