dual XHTML / HTML rendering