Package org.docx4j.samples
Class ContentControlBindingExtensionsOld
java.lang.Object
org.docx4j.samples.ContentControlBindingExtensionsOld
This sample demonstrates populating content controls
from a custom xml part (based on the xpaths given
in the content controls).
Word does this itself automatically, for if there is
a w:databinding element in the sdtPr.
However, out of the box, Word doesn't allow for
repeating things (table rows, paragraphs etc), nor
conditional inclusion/exclusion.
The OpenDoPE conventions support that; and this sample
demonstrates docx4j's implementation of that.
In practice you'll want the XML part to be injected at runtime.
For that, see the sample: ContentControlsMergeXML
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic jakarta.xml.bind.JAXBContext(package private) static String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
context
public static jakarta.xml.bind.JAXBContext context -
filepathprefix
-
-
Constructor Details
-
ContentControlBindingExtensionsOld
public ContentControlBindingExtensionsOld()
-
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-
reverter
- Throws:
Docx4JException
-
extensionMissing
-