I need to maintain backwards compatibility here. If someone does not set the doctype key, but *does* set xhtml, we should use either xhtml or html5