]> git.wh0rd.org - tt-rss.git/commitdiff
rename feed.xsl to atom-to-html.xsl
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Apr 2011 09:22:01 +0000 (13:22 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Apr 2011 09:22:01 +0000 (13:22 +0400)
atom-to-html.xsl [new file with mode: 0644]
feed.xsl [deleted file]
templates/generated_feed.txt

diff --git a/atom-to-html.xsl b/atom-to-html.xsl
new file mode 100644 (file)
index 0000000..13a1d7e
--- /dev/null
@@ -0,0 +1,55 @@
+<?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">
+
+<xsl:output method="html"/>
+
+<xsl:template match="/atom:feed">
+<html>
+       <head>
+               <title><xsl:value-of select="atom:title"/></title>
+               <link rel="stylesheet" type="text/css" href="utility.css"/>
+               <script language="javascript" src="lib/xsl_mop-up.js"></script>
+       </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"/>
+
+               <h1><xsl:value-of select="atom:title"/></h1>
+
+               <p class="description">This feed has been exported from
+                       <a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
+                  You need a news reader software to subscribe to it.
+                       It contains the following items:</p>
+
+               <xsl:for-each select="atom:entry">
+                       <h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
+
+                       <div name="decodeme" class="content">
+                               <xsl:value-of select="atom:content" 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>
+
diff --git a/feed.xsl b/feed.xsl
deleted file mode 100644 (file)
index 13a1d7e..0000000
--- a/feed.xsl
+++ /dev/null
@@ -1,55 +0,0 @@
-<?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">
-
-<xsl:output method="html"/>
-
-<xsl:template match="/atom:feed">
-<html>
-       <head>
-               <title><xsl:value-of select="atom:title"/></title>
-               <link rel="stylesheet" type="text/css" href="utility.css"/>
-               <script language="javascript" src="lib/xsl_mop-up.js"></script>
-       </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"/>
-
-               <h1><xsl:value-of select="atom:title"/></h1>
-
-               <p class="description">This feed has been exported from
-                       <a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
-                  You need a news reader software to subscribe to it.
-                       It contains the following items:</p>
-
-               <xsl:for-each select="atom:entry">
-                       <h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
-
-                       <div name="decodeme" class="content">
-                               <xsl:value-of select="atom:content" 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>
-
index 38c15cf01d2e690a240c11bd1b03eeae6320107b..dff67cf7e0e20d19bcab6c0eccefea670c9736b1 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="feed.xsl"?>
+<?xml-stylesheet type="text/xsl" href="atom-to-html.xsl"?>
 <!-- $BeginBlock feed -->
 <feed xmlns="http://www.w3.org/2005/Atom">
 <title>${FEED_TITLE}</title>