diff options
author | dakkar <dakkar@luxion> | 2008-12-29 13:06:44 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2008-12-29 13:06:44 +0000 |
commit | a8d60ac238363bde5fe5c4b0363f46bf0b1fed7f (patch) | |
tree | c71c20c066e7db0fffc9ae50b855e7bedbabb256 /t/test-site/src/common/fillFeed.xsl | |
parent | fallback for die-ing writers: use the parser (diff) | |
download | WebCoso-a8d60ac238363bde5fe5c4b0363f46bf0b1fed7f.tar.gz WebCoso-a8d60ac238363bde5fe5c4b0363f46bf0b1fed7f.tar.bz2 WebCoso-a8d60ac238363bde5fe5c4b0363f46bf0b1fed7f.zip |
inizio dei feed
git-svn-id: svn://luxion/repos/WebCoso/trunk@396 fcb26f47-9200-0410-b104-b98ab5b095f3
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 |