blob: 204485a0cd945e1096435bf739abb6e2a1ac412a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="title" />
<xsl:param name="icon" />
<xsl:template name="head">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
<xsl:value-of select="$title" />
</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
/>
</head>
</xsl:template>
<xsl:template name="page">
<xsl:param name="content" />
<html>
<xsl:call-template name="head">
<xsl:with-param name="title" select="$title"/>
</xsl:call-template>
<body>
<h1><img class="icon" src="/icons/{$icon}.svg#${icon}" /><xsl:text> </xsl:text><xsl:value-of select="$title" /></h1>
<hr />
<xsl:copy-of select="$content" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|