blob: 48f92039de8d33ccd13f5a26b56396fa50a62161 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rub="https://rub.parody" extension-element-prefixes="rub"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<xsl:template match="/feed">
<rss version="2.0">
<channel>
<title>Demo RSS feed</title>
<link>https://rub.parody/</link>
<description>Global feed</description>
<generator>Rub</generator>
<xsl:for-each select="entry">
<item>
<title><xsl:value-of select="title"/></title>
<description><xsl:value-of select="description"/></description>
<content:encoded>
<xsl:apply-templates select="html/body/main"/>
</content:encoded>
</item>
</xsl:for-each>
</channel>
</rss>
</xsl:template>
<xsl:template match="main"><rub:serialize/></xsl:template>
</xsl:stylesheet>
|