Skip to content

Commit a01914e

Browse files
committed
Description
1 parent 25b2ab4 commit a01914e

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

python-events-export.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
---
33
<?xml version="1.0" encoding="UTF-8"?>
4-
<?xml-stylesheet type="text/xsl" href="/static/xml/rss.xsl" media="all"?>
4+
<?xml-stylesheet type="text/xsl" href="/static/xml/rss-description.xsl" media="all"?>
55
<rss version="2.0"
66
xmlns:atom="http://www.w3.org/2005/Atom"
77
xmlns:dc="http://purl.org/dc/elements/1.1/"

static/xml/rss-description.xsl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.0">
3+
<xsl:output method="xml"/>
4+
<xsl:template match="/">
5+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
6+
<head>
7+
<meta charset="UTF-8"/>
8+
<meta name="viewport" content="width=device-width"/>
9+
<title><xsl:value-of select="rss/channel/title"/> (RSS)</title>
10+
<style><![CDATA[html{margin:0;padding:0;}body{color:hsl(180,1%,31%);font-family:Helvetica,Arial,sans-serif;font-size:17px;line-height:1.4;margin:5%;max-width:35rem;padding:0;}input{min-width:20rem;margin-left:.2rem;padding-left:.2rem;padding-right:.2rem;}ol{list-style-type:disc;padding-left:1rem;}h2{font-size:22px;font-weight:inherit;}]]></style>
11+
</head>
12+
<body>
13+
<h1><xsl:value-of select="rss/channel/title"/> (RSS)</h1>
14+
<p>This is an <abbr title="Really Simple Syndication">RSS</abbr> feed. To subscribe to it, copy its address and paste it when your feed reader asks for it. It will be updated periodically in your reader. New to feeds? <a href="https://duckduckgo.com/?q=how+to+get+started+with+rss+feeds" title="Search on the web to learn more">Learn more</a>.</p>
15+
<p>
16+
<label for="address">RSS address:</label>
17+
<input xmlns="http://www.w3.org/1999/xhtml" type="url" id="address" spellcheck="false" value="pythondeadlin.es/feed.xml"></input>
18+
</p>
19+
<p>Preview of the feed’s current headlines:</p>
20+
<ol>
21+
<xsl:for-each select="rss/channel/item">
22+
<li><h2><a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a></h2><br/><p><xsl:value-of select="description"/></p></li>
23+
</xsl:for-each>
24+
</ol>
25+
</body>
26+
</html>
27+
</xsl:template>
28+
</xsl:stylesheet>

0 commit comments

Comments
 (0)