make atftemplate.html valid XHTML