I have absolutely no experience with openxml or docx4j. But I'd like to know if the scenario I need is possible before diving into it. Pointers in the right direction would suffice.
I have data in XML or JSON format containing a persons employer type.
Suppose I have 3 plain text content controls in my word template: one if the employer type equals 'GOVERNMENT', one for 'SEMI-GOVERNMENT', one for 'OTHER'.
Only one of these content controls should be visible in the end result, depending on the data.
Is this something that should be done/solved with docx4j, or in the word template itself? How?