After a very good hint from @sergey.lobanov we made a big step forward. Now section copy and copy operations for different node types really work fine helping us to generate a docx output file out of one (or more) docx input files (I only added code for just one input file as the error can also be reproduced for a very simple use case).
Unfortunately we found another interesting input file that results in an unexpected result shown here.error.png (6.6 KB)
I attached input and output docx file and also the complete code for generating output file.
Could you please give us an advice what’s going wrong here and how we could fix this kind of problem?
Thanks a lot for your help in advance,
Kind regards, Günther
headerNumbering.zip (32.8 KB)