diff options
Diffstat (limited to 't/test-site/src/common/fillFeed.xsl')
-rw-r--r-- | t/test-site/src/common/fillFeed.xsl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/test-site/src/common/fillFeed.xsl b/t/test-site/src/common/fillFeed.xsl new file mode 100644 index 0000000..d19bf2b --- /dev/null +++ b/t/test-site/src/common/fillFeed.xsl @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" + xmlns:wc="http://webcoso.thenautilus.net/" + version="1.0"> + + <x:param name="language" select="'en'"/> + <x:param name="path"/> + <x:param name="filename"/> + + <x:output method="xml" encoding="utf-8"/> + + <x:template match="*"> + <x:copy> + <x:apply-templates select="@*|*|text()"/> + </x:copy> + </x:template> + + <x:template match="@*"> + <x:copy/> + </x:template> + + <x:template match="PH"> + <url><x:value-of select="."/></url> + <title><x:apply-templates select="wc:title-for($language,$filename,.)"/></title> + </x:template> + + +</x:stylesheet>
\ No newline at end of file |