aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-27 12:19:04 +0100
committerAdrian Kummerlaender2014-10-27 12:19:04 +0100
commit1ab950ffeb0f4efb33efd0115214e7e62b1f530d (patch)
treec0a587211c067d53fbd357e06ef21c58fcc357af /source
parentc51938cf23f335721df4d766eeeacc60edac92e0 (diff)
downloadblog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar.gz
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar.bz2
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar.lz
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar.xz
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.tar.zst
blog.kummerlaender.eu-1ab950ffeb0f4efb33efd0115214e7e62b1f530d.zip
Added author node for each feed entry
Diffstat (limited to 'source')
-rw-r--r--source/99_result/atom.xsl28
1 files changed, 17 insertions, 11 deletions
diff --git a/source/99_result/atom.xsl b/source/99_result/atom.xsl
index 5cbd5f3..b5fffdd 100644
--- a/source/99_result/atom.xsl
+++ b/source/99_result/atom.xsl
@@ -50,6 +50,14 @@
<xsl:template match="articles/entry">
<entry xmlns="http://www.w3.org/2005/Atom">
+ <link rel="alternate" title="{title}">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$url"/>
+ <xsl:text>/article/</xsl:text>
+ <xsl:value-of select="@handle"/>
+ </xsl:attribute>
+ </link>
+
<id>
<xsl:value-of select="$url"/>
<xsl:text>/article/</xsl:text>
@@ -58,22 +66,20 @@
<title>
<xsl:value-of select="title"/>
</title>
- <link rel="alternate" title="{title}">
- <xsl:attribute name="href">
- <xsl:value-of select="$url"/>
- <xsl:text>/article/</xsl:text>
- <xsl:value-of select="@handle"/>
- </xsl:attribute>
- </link>
+ <author>
+ <name>
+ <xsl:value-of select="$author"/>
+ </name>
+ </author>
+ <updated>
+ <xsl:value-of select="date/full"/>
+ <xsl:text>T00:00:01+02:00</xsl:text>
+ </updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates select="content/node()" mode="xhtml"/>
</div>
</content>
- <updated>
- <xsl:value-of select="date/full"/>
- <xsl:text>T00:00:01+02:00</xsl:text>
- </updated>
</entry>
</xsl:template>