* @return the flattened table cell
*/
private Element doFlattenTableCell(Styles styles, boolean forceLineBreak,
boolean doInlineDiv, boolean styledParent, boolean namedParent) {
DOMFactory domFactory = DOMFactory.getDefaultInstance();
Element column = domFactory.createElement();
Element newParent = domFactory.createElement();
if (namedParent) {
newParent.setName("div");
}
if (styles != null) {
column.setStyles(styles);
if (styledParent) {
newParent.setStyles(styles);
}
}
Element child = domFactory.createElement();
child.setName("p");
column.addHead(child);
MyXHTMLBasicTransformer transformer = new MyXHTMLBasicTransformer();
DOMProtocol protocol = createProtocol();