adapt for XHTML.