added xhtml mode