1<?xml version="1.0" encoding="UTF-8"?> 2<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:feedstyle="https://www.howtogeek.com/ns/feedstyle" version="1.0"> 3<xsl:output method="html" encoding="utf-8"/> 4<xsl:variable name="title" select="/rss/channel/title"/> 5<xsl:variable name="feedUrl" select="/rss/channel/atom10:link[@rel='self']/@href" xmlns:atom10="http://www.w3.org/2005/Atom"/> 6<xsl:variable name="link" select="/rss/channel/link"/> 7<xsl:variable name="feedUrlEncoded" select="/rss/channel/encoded"/> 8 9<xsl:template match="/"> 10<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text> 11<xsl:element name="html"> 12<head> 13 <title>Jeremy's Notes RSS Feed</title> 14 <link href="https://jeremysnotes.com/lib/tpl/master/css/rss.css" rel="stylesheet" type="text/css" media="all"/> 15 <link rel="alternate" type="application/rss+xml" title="{$title}" href="{$feedUrl}"/> 16 <script><![CDATA[ 17function pop(url){ 18 var k=window.open(url,'','left='+(screen.width/2-400)+',top='+(screen.height/2-300)+',width=800,height=600,personalbar=0,toolbar=0,scrollbars=1,resizable=1'); 19 if(k===null||!k){ 20 alert('The share dialog was blocked by your popup blocker. Please disable your popup blocker.'); 21 return; 22 } 23 k.focus(); 24} 25 ]]></script> 26</head> 27<body> 28 <div id="header"> 29 <h1 class="title"><a href="{normalize-space($link)}" title="Return to {$title}">Subscribe to Jeremy's Notes with RSS</a></h1> 30 31 <div class="share"> 32 <xsl:for-each select="/rss/channel/feedstyle:reader"> 33 <a href="{@url}" target="_blank"><xsl:value-of select="@name"/></a> 34 </xsl:for-each> 35 </div> 36 </div> 37 <div id="main"> 38 39 <xsl:for-each select="/rss/channel/item"> 40 <xsl:variable name="item" select="."/> 41 <div class="post"> 42 <h3 class="title"><a href="{normalize-space(link)}"><xsl:value-of select="title"/></a></h3> 43 44 <div class="tagline"> 45 <xsl:if test="count(child::pubDate)=1"> 46 <xsl:value-of select="normalize-space(substring(pubDate,5,string-length(pubDate)-10))"/> 47 </xsl:if> 48 </div> 49 50 <div class="description"> 51 <xsl:value-of select="*[name()='description:encoded']" disable-output-escaping="yes"/> 52 </div> 53 54 <div class="share"> 55 <xsl:for-each select="/rss/channel/feedstyle:button"> 56 <a href="#" onclick="pop('{@url}'.replace('%url%', encodeURIComponent('{normalize-space($item/link)}')));return false"><xsl:value-of select="@name"/></a> 57 </xsl:for-each> 58 </div> 59 </div> 60 </xsl:for-each> 61 </div> 62 <div id="footer"> 63 64 </div> 65</body> 66</xsl:element> 67</xsl:template> 68</xsl:stylesheet> 69