atom-to-html.xsl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <xsl:output method="html"/>
  6. <xsl:template match="/atom:feed">
  7. <html>
  8. <head>
  9. <title><xsl:value-of select="atom:title"/></title>
  10. <link rel="stylesheet" type="text/css" href="themes/light.css"/>
  11. <script language="javascript" src="lib/xsl_mop-up.js"></script>
  12. </head>
  13. <body onload="go_decoding()" class="ttrss_utility">
  14. <div id="cometestme" style="display:none;">
  15. <xsl:text disable-output-escaping="yes">&amp;amp;</xsl:text>
  16. </div>
  17. <div class="rss">
  18. <h1><xsl:value-of select="atom:title"/></h1>
  19. <p class="description">This feed has been exported from
  20. <a target="_new" class="extlink" href="http://tt-rss.org">Tiny Tiny RSS</a>.
  21. It contains the following items:</p>
  22. <xsl:for-each select="atom:entry">
  23. <h2><a target="_new" href="{atom:link/@href}"><xsl:value-of select="atom:title"/></a></h2>
  24. <div name="decodeme" class="content">
  25. <xsl:value-of select="atom:content" disable-output-escaping="yes"/>
  26. </div>
  27. <xsl:if test="enclosure">
  28. <p><a href="{enclosure/@url}">Extra...</a></p>
  29. </xsl:if>
  30. </xsl:for-each>
  31. </div>
  32. </body>
  33. </html>
  34. </xsl:template>
  35. </xsl:stylesheet>