aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-28 12:15:39 +0200
committerAdrian Kummerlaender2014-09-28 12:15:39 +0200
commitf421709745a59aae6227f8caaf97bd59e2b99482 (patch)
tree5d326aafcf42a7c6b41d1409970ca4ad1661a48e /source
parent6390e0f7435d4a960058b2ec04115d793e1309c6 (diff)
downloadblog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar.gz
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar.bz2
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar.lz
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar.xz
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.tar.zst
blog.kummerlaender.eu-f421709745a59aae6227f8caaf97bd59e2b99482.zip
Replaced custom ATOM XHTML copy templates with the appropriate helper template
Diffstat (limited to 'source')
-rw-r--r--source/99_result/atom.xsl14
1 files changed, 3 insertions, 11 deletions
diff --git a/source/99_result/atom.xsl b/source/99_result/atom.xsl
index 8bc0286..c2b983e 100644
--- a/source/99_result/atom.xsl
+++ b/source/99_result/atom.xsl
@@ -12,6 +12,8 @@
indent="no"
/>
+<xsl:include href="[utility/xhtml.xsl]"/>
+
<xsl:variable name="meta">
<datasource type="main" mode="full" source="01_data/articles.xml" target="articles"/>
<datasource type="support" mode="full" source="02_meta/meta.xml" target="meta"/>
@@ -21,16 +23,6 @@
<xsl:variable name="url" select="datasource/meta/url"/>
<xsl:variable name="author" select="datasource/meta/author"/>
-<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="datasource">
<feed>
<link href="{$url}/atom.xml" rel="self" />
@@ -74,7 +66,7 @@
</link>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
- <xsl:apply-templates mode="xhtml_copy" select="content/node()" />
+ <xsl:apply-templates select="content/node()" mode="xhtml"/>
</div>
</content>
<updated>