forked from bravegnu/gnu-eprog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.xsl
56 lines (46 loc) · 1.38 KB
/
rss.xsl
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="article">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<link>http://www.bravegnu.org/gnu-eprog/revision.rss</link>
<description>Updates for <xsl:apply-templates select="articleinfo/title" mode="text"/>
</description>
<title>Updates for <xsl:apply-templates select="articleinfo/title" mode="text"/>
</title>
<atom:link href="http://www.bravegnu.org/gnu-eprog/revision.rss"
rel="self" type="application/rss+xml" />
<xsl:apply-templates/>
</channel>
</rss>
</xsl:template>
<xsl:template match="articleinfo">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title" mode="text">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revhistory">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="revision">
<item>
<title><xsl:apply-templates select="revremark" mode="text"/></title>
<description><xsl:apply-templates select="revremark" mode="text"/></description>
<xsl:apply-templates/>
</item>
</xsl:template>
<xsl:template match="revnumber">
<guid isPermaLink="false">
<xsl:apply-templates/>
</guid>
</xsl:template>
<xsl:template match="date">
<pubDate>
<xsl:apply-templates/>
</pubDate>
</xsl:template>
<xsl:template match="revremark" mode="text">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*"></xsl:template>
</xsl:stylesheet>