-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
feed.xslt.xml
41 lines (41 loc) · 1.39 KB
/
feed.xslt.xml
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
---
layout: atom
permalink: /feed.xslt.xml
last_modified_at: 2018-04-19 23:48:22 +02:00
sitemap:
changefreq: yearly
priority: 0.1
---
<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:a="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:output method="text"/>
<xsl:template match="*"/>
<xsl:template match="a:feed">
<xsl:text>Atom Feed: </xsl:text>
<xsl:value-of select="a:id"/>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="a:entry">
<xsl:text> /** -------------- Feed Entry --------------- **/</xsl:text>
<xsl:text> URL: </xsl:text>
<xsl:value-of select="a:id"/>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="a:title">
<xsl:if test="parent::a:entry">
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:value-of select="local-name()"/>: <xsl:apply-templates/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="a:published|a:updated">
<xsl:if test="parent::a:entry">
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:value-of select="local-name()"/>: <xsl:apply-templates/>
<xsl:text> </xsl:text>
</xsl:template>
</xsl:transform>