dawns wrote:When I created the content control in Word, I overwrote that default "Click here to enter text" with "title" (which also matches the tag name, etc)
If you did that, I'm not sure how "Click here to enter text" could come back? I tried creating an example to see whether I could replicate, but to no avail. Perhaps you could post your example (zipped up)?
In my testing, when the XPath expression pointed to an attribute which was missing entirely, docx4j inserted an empty paragraph (replacing whatever was there ie whether it was "Click here to enter text" or "title").
Word leaves the existing content, so this is probably what docx4j should do as well. But then you'd have to do some work yourself to remove placeholder text if that's what you wanted.
Perhaps we could have a flag which determines what docx4j should do. What do you think?
Did you see the link to the docx4j user survey? Please take the survey, if you haven't already done so. Thanks!