Follow-up Comment #10, bug #315 (project tex4ht):
OK, thanks for confirming that it works. I will update TeX4ht sources with
this change.
The issue with doctype seems to be caused by LuaXML. make4ht runs some Lua
functions to clean up the generated HTML files. It uses LuaXML for the
parsing. If the XML parser fails, it uses the HTML 5 parser. After running of
transformations, it serializes the DOM object back to HTML. It seems that the
HTML 5 parser always serializes it as HTML 5, so the doctype is just <!DOCTYPE
html>. So for the XHTML files, we need to always produce a well formed XML
structure, to avoid use of the HTML 5 parser.
_______________________________________________________
Reply to this item at: <https://puszcza.gnu.org.ua/bugs/?315>
_______________________________________________
Message sent via/by Puszcza <https://puszcza.gnu.org.ua/>