Simple table to DL or UL depending on table structure