blob: c6820720b36c37477a3a8cc905f1f51f1208a85c (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
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="yes"
/>
<xsl:variable name="root" select="/datasource"/>
<xsl:variable name="url" select="$root/meta/url"/>
<xsl:template name="list_tags">
<ul>
<xsl:for-each select="datasource/meta/tags/entry">
<li>
<a href="{$url}/tag/{@handle}">
<xsl:value-of select="@handle"/>
</a>
</li>
</xsl:for-each>
</ul>
</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="robots" content="all"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title><xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/></title>
<link rel="stylesheet" type="text/css" href="{$url}/main.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<div id="wrapper">
<div id="content">
<div id="nav_wrap">
<h1><xsl:value-of select="$root/meta/title"/></h1>
<ul>
<li><a href="{$url}/0">Start</a></li>
<li><a href="{$url}/archive">Archive</a></li>
<li><a href="{$url}/projects">Projects</a></li>
<li><a href="{$url}/page/contact">Contact</a></li>
<li class="last_item"><a href="{$url}/atom.xml">Feed</a></li>
</ul>
</div>
<div id="main">
<xsl:apply-templates />
</div>
<div id="footer_wrap">
<div class="right taglist">
Tags:
<xsl:call-template name="list_tags"/>
</div>
</div>
<div id="last_line">
<a href="https://github.com/KnairdA/InputXSLT">Made with XSLT</a>
<ul>
<li><a href="{$url}/page/contact">Contact</a></li>
<li class="last_item"><a href="{$url}/atom.xml">Feed</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>
|