throws IOException
{
final int colSpan = box.getColSpan();
final int rowSpan = box.getRowSpan();
final AttributeList attrList = new AttributeList();
if (colSpan != 0)
{
attrList.setAttribute(Namespaces.XHTML_NAMESPACE, "colspan", String.valueOf(colSpan));
}
if (rowSpan != 0)
{
attrList.setAttribute(Namespaces.XHTML_NAMESPACE, "rowspan", String.valueOf(rowSpan));
}
buildStyle(box, builder);
if (builder.isEmpty() == false)
{
attrList.setAttribute(Namespaces.XHTML_NAMESPACE, "style", builder.toString());
}
xmlWriter.writeTag(Namespaces.XHTML_NAMESPACE, "td", attrList, XmlWriter.OPEN);
return true;
}