blob: cb9e025f7785f491459b4587ace10bee1ea18a23 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="no"
/>
<xsl:variable name="root" select="datasource"/>
<xsl:template match="meta/tags/entry" mode="master">
<li>
<a href="/tag/{@handle}">
<xsl:value-of select="@handle"/>
</a>
</li>
</xsl:template>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Adrian Kummerländer" />
<meta name="description" content="Adrian Kummerländer's blog on software development, linux and open source" />
<meta name="robots" content="all"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="/main.css" />
<link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" />
<title>
<xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/>
</title>
</head>
<body>
<div id="wrapper">
<div id="content">
<div id="navigation">
<h1>
<xsl:value-of select="$root/meta/title"/>
</h1>
<ul>
<li>
<a href="/0">Start</a>
</li>
<li>
<a href="/archive">Archive</a>
</li>
<li>
<a href="/category/projects">Projects</a>
</li>
<li>
<a href="/page/contact">Contact</a>
</li>
<li>
<a href="/atom.xml">Feed</a>
</li>
</ul>
</div>
<div id="main">
<xsl:apply-templates />
</div>
<div id="tags">
<ul>
<xsl:apply-templates select="datasource/meta/tags/entry" mode="master"/>
</ul>
</div>
<div id="footer">
<a href="/page/static_xslt/">Made with XSLT</a>
<ul>
<li>
<a href="/page/contact">Contact</a>
</li>
<li>
<a href="/atom.xml">Feed</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>
|