mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
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).
This commit is contained in:
parent
83195a7083
commit
caa93ea37f
4
xep.xsl
4
xep.xsl
@ -34,7 +34,7 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
|
||||
|
||||
<xsl:output doctype-public='-//W3C//DTD XHTML 1.0 Transitional//EN' doctype-system='http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' method='html' indent='no'/>
|
||||
<xsl:output method='html' encoding='utf-8' omit-xml-declaration='yes' indent='no'/>
|
||||
|
||||
<xsl:template name="status-notice">
|
||||
<xsl:param name="thestatus"/>
|
||||
@ -170,6 +170,8 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match='/'>
|
||||
<xsl:text disable-output-escaping='yes'><!DOCTYPE html>
|
||||
</xsl:text>
|
||||
<html>
|
||||
<head>
|
||||
<title>XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /></title>
|
||||
|
Loading…
Reference in New Issue
Block a user