blob: 1c4902e034effe594946d27d649404b4ad8dde41 (
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
|
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="base.xslt" />
<xsl:output encoding="utf-8" method="html" version="5" media-type="text/html" indent="no" />
<xsl:template name="head">
<title><xsl:value-of select="article/title" /> · Gentoo Browse</title>
<meta name="description">
<xsl:attribute name="content">
<xsl:value-of select="article/title" />
</xsl:attribute>
</meta>
</xsl:template>
<xsl:template name="header">
<h1>News article</h1>
</xsl:template>
<xsl:template name="content">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li>
<a>
<xsl:call-template name="humanDate">
<xsl:with-param name="date" select="article/posted" />
</xsl:call-template>
</a>
</li>
<li>
<a>
<xsl:attribute name="href">
mailto:<xsl:value-of select="article/authoremail" />
</xsl:attribute>
<xsl:value-of select="article/authorname" />
</a>
</li>
</ul>
</div>
<div class="span9">
<h2 class="page-header">
<xsl:value-of select="article/title" />
</h2>
<section>
<xsl:for-each select="article/body/element">
<p>
<xsl:value-of select="." />
</p>
</xsl:for-each>
<xsl:if test="article/atomspec/element">
<h3>Applies to</h3>
<ul>
<xsl:for-each select="article/atomspec/element">
<li>
<xsl:value-of select="." />
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="article/urls/element">
<h3>Also see</h3>
<ul>
<xsl:for-each select="article/urls/element">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="." />
</xsl:attribute>
<xsl:value-of select="." />
</a>
</li>
</xsl:for-each>
</ul>
</xsl:if>
</section>
</div>
</xsl:template>
</xsl:stylesheet>
|