aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
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>