In looking further at this, I see where http://www.docx4java.org/trac/docx4j/changeset/1579
, as one of the changes, did this: "support re-processing of OpenDoPE repeat (except 0 case)", which description seems to be exactly what I'm trying to do.
In this, it strips off the .. from the end of the XPath (from the last element of the XPath).
And I see where docx4j already handles #1 above (remove all table rows except the header row and the first row with control fields).
Are there plans to incorporate #2 above for both XPathID and the intermediate XPath elements (not just the last) for "support re-processing of OpenDoPE repeat (except 0 case)"?
If not, I'll look at the OpenDoPEHandler code to see if I can create a "resetTable" method to be called before OpenDoPEHandler.preprocess.
Any advice on "gotchas" when changing the XPath (remove intermediate [n]s) and renaming XPathIDs? Thanks.