// Initialise the content models for the elements.
MIXED_TEXT = bounded(choice()
.add(PCDATA)
.add(TEXT));
ContentModel MIXED_FLOW_LIST = bounded(choice()
.add(PCDATA)
.add(FLOW)
.add(LIST));
MIXED_FLOW = bounded(choice()
.add(PCDATA)
.add(FLOW));
ContentModel LIST_CONTENT = sequence()
.add(bounded(label).optional())
.add(bounded(li).atLeastOne());
// Set the content models for the elements.
a.setContentModel(MIXED_TEXT);