* transformations. In this case a 2 column table containing a paragraph
* in one row and a 1 column table in another whose rows are paragraphed
* should be transformed to remove the inner table.
*/
public void testTransformElementNestedTablesFromWml4() throws Exception {
Element wml = domFactory.createElement();
wml.setName("wml");
Element card = domFactory.createElement();
card.setName("card");
wml.addTail(card);
Element td [] = new Element[2];
td[0] = createTableCell("cell", false, false, 1);
td[1] = createTableCell("cell", true, false, 2);
Element tr [] = new Element[2];
tr[0] = createRow(td);
td = new Element[1];
int cols [] = {1, 1};
td[0] = domFactory.createElement("td");
td[0].addTail(createTable(2, cols));
tr[1] = createRow(td);
Element table = createTable(tr);
card.addTail(table);
Document doc = domFactory.createDocument();
doc.addNode(wml);
transformer.transformElement(wml);