diff options
author | dakkar <dakkar@luxion> | 2009-01-07 12:51:13 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2009-01-07 12:51:13 +0000 |
commit | 8d25800c67ad65defd98771bba2331ee64104f98 (patch) | |
tree | 622f61a0c5609c61904d9da3a6ab4b8db6688a24 /t/test-site/src/common/du2html.xsl | |
parent | a parte i namespace sbagliati, direi che i feed possono andare bene (diff) | |
download | WebCoso-8d25800c67ad65defd98771bba2331ee64104f98.tar.gz WebCoso-8d25800c67ad65defd98771bba2331ee64104f98.tar.bz2 WebCoso-8d25800c67ad65defd98771bba2331ee64104f98.zip |
feed fatti, e pure col test
manca: testare feed intl, fare feed dei tag, mettere i tag nei feed
git-svn-id: svn://luxion/repos/WebCoso/trunk@402 fcb26f47-9200-0410-b104-b98ab5b095f3
Diffstat (limited to 't/test-site/src/common/du2html.xsl')
-rw-r--r-- | t/test-site/src/common/du2html.xsl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl index 88c70b0..8b73a82 100644 --- a/t/test-site/src/common/du2html.xsl +++ b/t/test-site/src/common/du2html.xsl @@ -15,6 +15,15 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes"/> + <!-- + i casini con quel ancestor::document sono dovuti a: + + 1) il fatto che $filename non รจ il nome del documento che stiamo + toccando, quando espandiamo i documenti dentro al feed + + 2) un bug di LibXML o LibXSLT, per cui /document/@source non va + --> + <x:template match="reference"> <x:element name="a"> <x:attribute name="href"> @@ -23,14 +32,14 @@ <x:value-of select="concat('#', @refid)" /> </x:when> <x:when test="@refuri"> - <x:value-of select="@refuri" /> + <x:value-of select="@refuri"/> </x:when> </x:choose> </x:attribute> <x:choose> <x:when test="@refuri and string(.)=string(@refuri)"> - <x:apply-templates select="wc:title-for($language,$filename,@refuri)"/> + <x:apply-templates select="wc:title-for($language,ancestor::document/@source,@refuri)"/> </x:when> <x:otherwise> <x:apply-templates /> @@ -39,6 +48,9 @@ </x:element> </x:template> + <!-- qui ce ne freghiamo del @source, tanto viene usata solo per i + documenti stand-alone --> + <x:template match="/document"> <html xml:lang="{$language}" lang="{$language}"> <head> |