CMGroupImpl group1 = new CMGroupImpl(CMGroup.SEQUENCE, 1, 1);
if (group1 != null){
content.appendChild(group1);
}
// FIGCAPTION, FLOW
CMNode dec = collection.getNamedItem(HTML50Namespace.ElementName.FIGCAPTION);
if (dec != null)
group1.appendChild(dec);
CMGroupImpl flowgroup = new CMGroupImpl(CMGroup.SEQUENCE, 1, 1);
group1.appendChild(flowgroup);
collection.getFlow(flowgroup);
CMGroupImpl group2 = new CMGroupImpl(CMGroup.SEQUENCE, 1, 1);
if (group2 != null){
content.appendChild(group2);
}
// FLOW , FIGCAPTION
CMGroupImpl flowgroup2 = new CMGroupImpl(CMGroup.SEQUENCE, 1, 1);
group2.appendChild(flowgroup2);
collection.getFlow(flowgroup2);
CMNode dec1 = collection.getNamedItem(HTML50Namespace.ElementName.FIGCAPTION);
if (dec1 != null)
group2.appendChild(dec1);
//FLOW
CMGroupImpl group3 = new CMGroupImpl(CMGroup.SEQUENCE, 1, 1);
if (group3 != null){