]> git.wh0rd.org - tt-rss.git/blob - atom-to-html.xsl
pngcrush.sh
[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="css/default.css"/>
13 <script language="javascript" src="lib/xsl_mop-up.js"></script>
14 </head>
15
16 <body onload="go_decoding()" class="ttrss_utility">
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 <h1><xsl:value-of select="atom:title"/></h1>
25
26 <p class="description">This feed has been exported from
27 <a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
28 It contains the following items:</p>
29
30 <xsl:for-each select="atom:entry">
31 <h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
32
33 <div name="decodeme" class="content">
34 <xsl:value-of select="atom:content" disable-output-escaping="yes"/>
35 </div>
36
37 <xsl:if test="enclosure">
38 <p><a href="{enclosure/@url}">Extra...</a></p>
39 </xsl:if>
40
41
42 </xsl:for-each>
43
44 </div>
45
46 </body>
47 </html>
48 </xsl:template>
49
50 </xsl:stylesheet>
51