1 <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:variable name="title" select="/rss/channel/title"/> <xsl:template match="/"> <html> <head> <title><xsl:value-of select="$title"/></title> <link rel="icon" href="img/icon.png" type="image/png"/> <link rel="stylesheet" type="text/css" href="style.css"/> </head> <xsl:apply-templates select="rss/channel"/> </html> </xsl:template> <xsl:template match="channel"> <body> <div id="page"> <div id="header"> <!-- CONFIG: Header --> <div id="MastheadLogo"> <h1> OpenGrok </h1> </div> <div id="pagetitle"><b id="filename"><xsl:value-of select="title"/></b><br/> <xsl:value-of select="description"/> </div> </div> <div id="Masthead"> <tt>RSS Feed <a href="{link}" class="item"><xsl:value-of select="link"/></a></tt> </div> <div id="results"> <div class="itembox"> <div class="paditembox"> <xsl:apply-templates select="item"/> </div> </div> </div> <!-- CONFIG: Footer --> <div id="Footer"> <p class="Center"> </p> </div> </div> </body> </xsl:template> <xsl:template match="item"> <div id="item"> <ul> <li><span class="c"><xsl:value-of select="pubDate"/> - </span> <xsl:value-of select="title"/> <br/> <pre> <xsl:value-of select="description" /> </pre> </li> </ul> </div> </xsl:template> </xsl:stylesheet>