reformating and swithced DTD to html