Document API: Tables - bug fixes and XHTML 1.0 version + example.