aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/src/common/fillFeed.xsl
diff options
context:
space:
mode:
Diffstat (limited to 't/test-site/src/common/fillFeed.xsl')
-rw-r--r--t/test-site/src/common/fillFeed.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/test-site/src/common/fillFeed.xsl b/t/test-site/src/common/fillFeed.xsl
index 04a6de3..30d167b 100644
--- a/t/test-site/src/common/fillFeed.xsl
+++ b/t/test-site/src/common/fillFeed.xsl
@@ -30,7 +30,6 @@
<x:template match="a:entry">
<a:entry>
- <x:copy-of select="a:category"/>
<x:copy-of select="a:id"/>
<x:copy-of select="a:published"/>
<x:copy-of select="a:updated"/>
@@ -50,6 +49,11 @@
<x:apply-templates select="wc:document($language,$filename,.)/document/node()"/>
</div>
</a:content>
+ <x:for-each select="wc:document($language,$filename,.)/document/docinfo/field[field_name='tags']/field_body">
+ <x:for-each select="*/list_item|paragraph">
+ <a:category term="{normalize-space(.)}" label="{normalize-space(string(wc:title-for($language,$filename,concat('/tags/',normalize-space(.),'/'))))}"/>
+ </x:for-each>
+ </x:for-each>
</x:template>
</x:stylesheet> \ No newline at end of file