support defineTag element to define a simple template for reuse.
support nested table now.