diff options
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> |