]> git.wh0rd.org - tt-rss.git/blob - atom-to-html.xsl
Merge branch 'master' of git://github.com/falu/Tiny-Tiny-RSS into falu-master
[tt-rss.git] / atom-to-html.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet
3 xmlns:atom="http://www.w3.org/2005/Atom"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5
6 <xsl:output method="html"/>
7
8 <xsl:template match="/atom:feed">
9 <html>
10 <head>
11 <title><xsl:value-of select="atom:title"/></title>
12 <link rel="stylesheet" type="text/css" href="utility.css"/>
13 <script language="javascript" src="lib/xsl_mop-up.js"></script>
14 </head>
15
16 <body onload="go_decoding()">
17
18 <div id="cometestme" style="display:none;">
19 <xsl:text disable-output-escaping="yes">&amp;amp;</xsl:text>
20 </div>
21
22 <div class="rss">
23
24 <img class="feedicon" src="images/pub_set.svg" style="width : 64px; height : 64px;"
25 alt="feed icon"/>
26
27 <h1><xsl:value-of select="atom:title"/></h1>
28
29 <p class="description">This feed has been exported from
30 <a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
31 It contains the following items:</p>
32
33 <xsl:for-each select="atom:entry">
34 <h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
35
36 <div name="decodeme" class="content">
37 <xsl:value-of select="atom:content" disable-output-escaping="yes"/>
38 </div>
39
40 <xsl:if test="enclosure">
41 <p><a href="{enclosure/@url}">Extra...</a></p>
42 </xsl:if>
43
44
45 </xsl:for-each>
46
47 </div>
48
49 </body>
50 </html>
51 </xsl:template>
52
53 </xsl:stylesheet>
54