aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/src/common
diff options
context:
space:
mode:
Diffstat (limited to 't/test-site/src/common')
-rw-r--r--t/test-site/src/common/fillFeed.xsl20
1 files changed, 16 insertions, 4 deletions
diff --git a/t/test-site/src/common/fillFeed.xsl b/t/test-site/src/common/fillFeed.xsl
index d19bf2b..79c7b57 100644
--- a/t/test-site/src/common/fillFeed.xsl
+++ b/t/test-site/src/common/fillFeed.xsl
@@ -1,17 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
xmlns:wc="http://webcoso.thenautilus.net/"
+ exclude-result-prefixes="wc"
version="1.0">
+ <x:import href="du2html.xsl"/>
+
<x:param name="language" select="'en'"/>
<x:param name="path"/>
<x:param name="filename"/>
- <x:output method="xml" encoding="utf-8"/>
+ <x:output method="xml" encoding="utf-8" doctype-public=""/>
+
+ <x:template match="/document" priority="10">
+ <x:apply-imports/>
+ </x:template>
<x:template match="*">
<x:copy>
- <x:apply-templates select="@*|*|text()"/>
+ <x:apply-templates select="@*"/>
+ <x:apply-templates select="*|text()"/>
</x:copy>
</x:template>
@@ -21,8 +29,12 @@
<x:template match="PH">
<url><x:value-of select="."/></url>
- <title><x:apply-templates select="wc:title-for($language,$filename,.)"/></title>
+ <title><x:value-of select="wc:title-for($language,$filename,.)"/></title>
+ <!--
+ <body>
+ <x:apply-templates select="wc:document($language,$filename,.)/document"/>
+ </body>
+ -->
</x:template>
-
</x:stylesheet> \ No newline at end of file