diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-18 04:28:55 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-18 04:28:55 +0900 |
commit | 38972ae499826bc61e56f52fa74ced447c5dd056 (patch) | |
tree | 41d999d3c96986a58a7871ca9015fb1ffe3236dd /xhtml.xslt | |
parent | 5b56f1c5e757fc7165efac2b0c9e14583095ad81 (diff) | |
download | site-38972ae499826bc61e56f52fa74ced447c5dd056.tar.gz |
Automate generation process
Diffstat (limited to 'xhtml.xslt')
-rw-r--r-- | xhtml.xslt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xhtml.xslt b/xhtml.xslt new file mode 100644 index 0000000..2bdb370 --- /dev/null +++ b/xhtml.xslt @@ -0,0 +1,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> |