diff options
author | dakkar <dakkar@luxion> | 2008-01-03 15:32:35 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2008-01-03 15:32:35 +0000 |
commit | cb9651dc90682570b1fde612771ea6856ee8c58e (patch) | |
tree | 557a12568a8f573a84629adc536ec863b51d4319 /t/test-site | |
parent | chaged default form of dstUriFor, prepared for XML-visible tags (diff) | |
download | WebCoso-cb9651dc90682570b1fde612771ea6856ee8c58e.tar.gz WebCoso-cb9651dc90682570b1fde612771ea6856ee8c58e.tar.bz2 WebCoso-cb9651dc90682570b1fde612771ea6856ee8c58e.zip |
added taglist to single pages
git-svn-id: svn://luxion/repos/WebCoso/trunk@322 fcb26f47-9200-0410-b104-b98ab5b095f3
Diffstat (limited to 't/test-site')
-rw-r--r-- | t/test-site/src/common/du2html.xsl | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl index b67dbe6..569349e 100644 --- a/t/test-site/src/common/du2html.xsl +++ b/t/test-site/src/common/du2html.xsl @@ -45,10 +45,45 @@ <title><x:value-of select="title"/></title> </head> <body> - <h1><x:apply-templates select="title/node()"/></h1> - <x:apply-templates/> + <div> + <h1><x:apply-templates select="title/node()"/></h1> + <x:apply-templates/> + </div> + <div> + <x:apply-templates select="wc:tagged()"/> + </div> </body> </html> </x:template> + <x:template match="/wc:tags"> + <dl> + <x:apply-templates/> + </dl> + </x:template> + + <x:template match="wc:tag"> + <dt><x:apply-templates select="wc:title-for($language,$filename,concat('/tags/',@name,'/'))"/></dt> + <dd> + <x:apply-templates/> + </dd> + </x:template> + + <x:template match="wc:doc"> + <a href="{@uri}"><x:apply-templates select="wc:title-for($language,$filename,@uri)"/></a> + (<x:apply-templates/>) + </x:template> + + <x:template match="wc:lang"> + <x:choose> + <x:when test=".!=$language"> + <a href="{../@uri}{.}"><x:value-of select="."/></a> + </x:when> + <x:otherwise> + <x:value-of select="."/> + </x:otherwise> + </x:choose> + <x:if test="following-sibling::wc:lang"> | </x:if> + </x:template> + </x:stylesheet>
\ No newline at end of file |