ttrss/atom-to-html.xsl

52 lines
1.2 KiB
XML
Raw Normal View History

2007-08-10 05:22:04 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2007-08-10 05:22:04 +00:00
<xsl:output method="html"/>
<xsl:template match="/atom:feed">
2007-08-10 05:22:04 +00:00
<html>
<head>
<title><xsl:value-of select="atom:title"/></title>
2013-05-20 03:34:21 +00:00
<link rel="stylesheet" type="text/css" href="css/utility.css"/>
2009-12-21 18:28:18 +00:00
<script language="javascript" src="lib/xsl_mop-up.js"></script>
2007-08-10 05:22:04 +00:00
</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">
<h1><xsl:value-of select="atom:title"/></h1>
2007-08-10 05:22:04 +00:00
<p class="description">This feed has been exported from
<a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
It contains the following items:</p>
2007-08-10 05:22:04 +00:00
<xsl:for-each select="atom:entry">
<h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
2007-08-10 05:22:04 +00:00
<div name="decodeme" class="content">
<xsl:value-of select="atom:content" disable-output-escaping="yes"/>
2007-08-10 05:22:04 +00:00
</div>
<xsl:if test="enclosure">
<p><a href="{enclosure/@url}">Extra...</a></p>
</xsl:if>
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>