aboutsummaryrefslogtreecommitdiff
path: root/source/99_result
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-04 20:46:47 +0200
committerAdrian Kummerlaender2014-08-04 20:46:47 +0200
commit06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d (patch)
tree80390edb45ae59557e785bc82eb076dc5f3db8c9 /source/99_result
parentbd328048e195c764bf9be5266605975dff73e387 (diff)
downloadblog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar.gz
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar.bz2
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar.lz
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar.xz
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.tar.zst
blog.kummerlaender.eu-06fb15b5a600cd0b6de5018a3c5d8b993ab53a0d.zip
Fixed namespace of atom feed XHTML summary
* all xhtml elements contained a empty xmlns attribute ** this was fixed through a custom "xhtml_copy" mode template
Diffstat (limited to 'source/99_result')
-rw-r--r--source/99_result/atom.xsl20
1 files changed, 15 insertions, 5 deletions
diff --git a/source/99_result/atom.xsl b/source/99_result/atom.xsl
index 86f0217..0ab678e 100644
--- a/source/99_result/atom.xsl
+++ b/source/99_result/atom.xsl
@@ -19,6 +19,16 @@
<xsl:variable name="url" select="datasource/meta/url"/>
+<xsl:template match="*" mode="xhtml_copy">
+ <xsl:element name="{name()}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates select="@*|node()" mode="xhtml_copy" />
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="@*|text()|comment()" mode="xhtml_copy">
+ <xsl:copy/>
+</xsl:template>
+
<xsl:template match="/">
<feed xmlns="http://www.w3.org/2005/Atom">
<id><xsl:value-of select="$url"/></id>
@@ -32,18 +42,18 @@
</xsl:template>
<xsl:template match="datasource/articles/entry">
- <entry>
+ <entry xmlns="http://www.w3.org/2005/Atom">
<title><xsl:value-of select="title"/></title>
<link><xsl:value-of select="$url"/>/article/<xsl:value-of select="@handle"/></link>
<content type="xhtml">
- <div xmlns="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <xsl:copy-of select="content/node()"/>
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates mode="xhtml_copy" select="content/node()" />
</div>
</content>
- <published>
+ <updated>
<xsl:value-of select="date/full"/>
<xsl:text>T00:00:01+02:00</xsl:text>
- </published>
+ </updated>
</entry>
</xsl:template>