about summary refs log tree commit diff homepage
path: root/xhtml.xslt
blob: 2bdb370867d1ad083f01c54da4aa5a4f486e4b2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xhtml="http://www.w3.org/1999/xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                exclude-result-prefixes="xhtml">
  <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
  <xsl:strip-space elements="*"/>
  <xsl:template match="/xhtml:html">
    <html lang="en">
      <head>
        <meta name="color-scheme" content="dark light"/>
        <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
        <link rel="icon" href="data:,"/>
        <title><xsl:value-of select="(//xhtml:h1)[1]"/></title>
      </head>
      <xsl:copy-of select="xhtml:body"/>
    </html>
  </xsl:template>
</xsl:stylesheet>