Conform fenc to file's extension
Reconstruct xhtml template from html5 template