diff options
author | dakkar <dakkar@luxion> | 2009-01-06 12:25:44 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2009-01-06 12:25:44 +0000 |
commit | ab8177e2b452ae5381bdcd7e91460808f38d075d (patch) | |
tree | fdaf3152883514dfd6aa31528d8f74b69adb988c /t/test-site/src/common/fillFeed.xsl | |
parent | ora genera davvero i feed (diff) | |
download | WebCoso-ab8177e2b452ae5381bdcd7e91460808f38d075d.tar.gz WebCoso-ab8177e2b452ae5381bdcd7e91460808f38d075d.tar.bz2 WebCoso-ab8177e2b452ae5381bdcd7e91460808f38d075d.zip |
ora i feed espandono le pagine (e ri-fissato l'errore dei titoli, cfr r388)
git-svn-id: svn://luxion/repos/WebCoso/trunk@399 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 | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/t/test-site/src/common/fillFeed.xsl b/t/test-site/src/common/fillFeed.xsl index 79c7b57..5ba0d76 100644 --- a/t/test-site/src/common/fillFeed.xsl +++ b/t/test-site/src/common/fillFeed.xsl @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" xmlns:wc="http://webcoso.thenautilus.net/" + xmlns:f="http://webcoso.thenautilus.net/feeds" exclude-result-prefixes="wc" version="1.0"> @@ -12,29 +13,23 @@ <x:output method="xml" encoding="utf-8" doctype-public=""/> - <x:template match="/document" priority="10"> - <x:apply-imports/> - </x:template> - - <x:template match="*"> + <x:template match="f:*"> <x:copy> <x:apply-templates select="@*"/> <x:apply-templates select="*|text()"/> </x:copy> </x:template> - <x:template match="@*"> + <x:template match="@f:*"> <x:copy/> </x:template> - <x:template match="PH"> - <url><x:value-of select="."/></url> - <title><x:value-of select="wc:title-for($language,$filename,.)"/></title> - <!-- - <body> + <x:template match="f:PH"> + <f:url><x:value-of select="."/></f:url> + <f:title><x:value-of select="wc:title-for($language,$filename,.)"/></f:title> + <f:body> <x:apply-templates select="wc:document($language,$filename,.)/document"/> - </body> - --> + </f:body> </x:template> </x:stylesheet>
\ No newline at end of file |