[css-device-adapt] Support both xhtml and html output.