atom-to-html.xsl 1.38 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4
<xsl:stylesheet 
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 6 7

<xsl:output method="html"/>

8
<xsl:template match="/atom:feed">
9 10
<html>
	<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 15 16 17 18 19 20 21 22 23 24 25
	</head>

	<body onload="go_decoding()">

		<div id="cometestme" style="display:none;">
			<xsl:text disable-output-escaping="yes">&amp;amp;</xsl:text>
		</div>

		<div class="rss">

		<img class="feedicon" src="images/feed-icon-64x64.png" alt="feed icon"/>

26
		<h1><xsl:value-of select="atom:title"/></h1>
27

28
		<p class="description">This feed has been exported from
29
			<a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
30 31
		   You need a news reader software to subscribe to it.
			It contains the following items:</p>
32

33 34
		<xsl:for-each select="atom:entry">
			<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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
			</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>