xref: /OpenGrok/opengrok-web/src/main/webapp/rss.xsl.xml (revision 0d40e9d0d07acb46ebe450cbc6042a9705a36e41)
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3    <xsl:output method="html" />
4    <xsl:variable name="title" select="/rss/channel/title"/>
5    <xsl:template match="/">
6        <html>
7            <head>
8                <title><xsl:value-of select="$title"/></title>
9                <link rel="icon" href="img/icon.png" type="image/png"/>
10                <link rel="stylesheet" type="text/css" href="style.css"/>
11            </head>
12            <xsl:apply-templates select="rss/channel"/>
13        </html>
14    </xsl:template>
15    <xsl:template match="channel">
16        <body>
17            <div id="page">
18            <div id="header">     <!-- CONFIG: Header -->
19                <div id="MastheadLogo"> <h1> OpenGrok </h1> </div>
20      <div id="pagetitle"><b id="filename"><xsl:value-of select="title"/></b><br/>
21          <xsl:value-of select="description"/>
22      </div>
23            </div>
24            <div id="Masthead">
25               <tt>RSS Feed <a href="{link}" class="item"><xsl:value-of select="link"/></a></tt>
26            </div>
27            <div id="results">
28                <div class="itembox">
29                    <div class="paditembox">
30                        <xsl:apply-templates select="item"/>
31                    </div>
32                </div>
33            </div>
34<!-- CONFIG: Footer -->
35<div id="Footer">
36<p class="Center">
37</p>
38</div>
39</div>
40        </body>
41    </xsl:template>
42
43    <xsl:template match="item">
44        <div id="item">
45            <ul>
46                <li><span class="c"><xsl:value-of select="pubDate"/> - </span>
47                        <xsl:value-of select="title"/>
48                    <br/>
49                    <pre>
50                        <xsl:value-of select="description" />
51                    </pre>
52                </li>
53            </ul>
54        </div>
55    </xsl:template>
56</xsl:stylesheet>
57