diff options
author | Andrew Dolgov <[email protected]> | 2007-08-10 06:22:04 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-10 06:22:04 +0100 |
commit | a5472764c9bcd3eda58540e2cc97c5a42bb1bc1c (patch) | |
tree | 74c6ae7c9e33585f69c34854664d7631bbdbd945 /rss.xsl | |
parent | f56e308090f460d97dbe834ad88754231c3459e9 (diff) |
add XSL stylesheet to generated feeds
Diffstat (limited to 'rss.xsl')
-rw-r--r-- | rss.xsl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/rss.xsl b/rss.xsl new file mode 100644 index 000000000..04da62d31 --- /dev/null +++ b/rss.xsl @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:output method="html"/> + +<xsl:template match="/"> +<html> + <head> + <title><xsl:value-of select="rss/channel/title"/></title> + <link rel="stylesheet" type="text/css" href="utility.css"/> + <script language="javascript" src="xsl_mop-up.js"></script> + </head> + + <body onload="go_decoding()"> + + <div id="cometestme" style="display:none;"> + <xsl:text disable-output-escaping="yes">&amp;</xsl:text> + </div> + + <div class="rss"> + + <img class="feedicon" src="images/feed-icon-64x64.png" alt="feed icon"/> + + <h1><xsl:value-of select="rss/channel/title"/></h1> + + <p class="description">This is an RSS feed exported from + <a target="_new" class="extlink" href="http://tt-rss.spb.ru">Tiny Tiny RSS</a>. + You must install a news aggregator to subscribe to it. + This feed contains the following items:</p> + + <!-- <p class="description"><xsl:value-of + select="rss/channel/description"/></p> --> + + <xsl:for-each select="rss/channel/item"> + <h2><xsl:value-of select="title"/></h2> + + <div><a class="extlink" target="_new" + href="{link}"><xsl:value-of select="link"/></a></div> + + <div name="decodeme" class="content"> + <xsl:value-of select="description" disable-output-escaping="yes"/> + </div> + + <xsl:if test="enclosure"> + <p><a href="{enclosure/@url}">Extra...</a></p> + </xsl:if> + + <hr/> + + </xsl:for-each> + + </div> + + </body> + </html> +</xsl:template> + +</xsl:stylesheet> + |