瀏覽代碼

svn path=/trunk/; revision=20099

pull/8/head
nicoulas 9 年前
父節點
當前提交
e4e200954f
共有 2 個檔案被更改,包括 10 行新增4 行删除
  1. +1
    -3
      tags/tags.en.xhtml
  2. +9
    -1
      tools/xsltsl/tagging.xsl

+ 1
- 3
tags/tags.en.xhtml 查看文件

@ -10,9 +10,7 @@
<div id="intro">
<p>
Here after is a list of tags that are currently being used. The
number in parenthesis is the number of time this tag is used in
our pages.
Here after is a list of tags that are currently being used.
</p>
</div>


+ 9
- 1
tools/xsltsl/tagging.xsl 查看文件

@ -121,6 +121,15 @@
<!--display dynamic list of tags used in news-->
<xsl:template name="all-tags-news">
<!-- <xsl:variable name="nbtags" select="count(
/html/set/news/tags/tag[
count( . | key( 'news-tags-by-value', . )[1] ) = 1
])" />
<xsl:variable name="average" select="count(/html/set/news/tags/tag) div $nbtags" />
##<xsl:value-of select="$nbtags" />##<xsl:value-of select="$average" />## -->
<xsl:element name="ul">
<xsl:attribute name="class">taglist</xsl:attribute>
@ -135,7 +144,6 @@
→ to finish this calculation, we need to find out how many min and max tag occurrences there are -->
<!-- <xsl:variable name="font" select="(40-16) * ($nb-16) / (MAXCOUNT-MINCOUNT) + 16" /> -->
<xsl:if test="generate-id() = generate-id(key('news-tags-by-value', normalize-space(.)))">
<xsl:element name="li">


載入中…
取消
儲存