From caa93ea37f68e0d0f4614428a4cb25359f693bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Wed, 22 Jan 2020 16:24:14 +0100 Subject: [PATCH] Generate a proper HTML5 document type We were previously generating HTML5, while claiming to be XHTML 1.0 and serving the content with text/html Content-Type. Not ideal. This change generates the proper HTML5 document type using a slightly awful, but required, hack because HTML5 is using a weird doctype format not supported by XSLT (1.0, anyways). --- xep.xsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xep.xsl b/xep.xsl index dd0506ca..e935317c 100644 --- a/xep.xsl +++ b/xep.xsl @@ -34,7 +34,7 @@ OR OTHER DEALINGS IN THE SOFTWARE. - + @@ -170,6 +170,8 @@ OR OTHER DEALINGS IN THE SOFTWARE. + <!DOCTYPE html> + XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' />