table as self contained document