Browse Source

svn path=/trunk/; revision=20099

pull/8/head
nicoulas 9 years ago
parent
commit
e4e200954f
2 changed files with 10 additions and 4 deletions
  1. +1
    -3
      tags/tags.en.xhtml
  2. +9
    -1
      tools/xsltsl/tagging.xsl

+ 1
- 3
tags/tags.en.xhtml View File

@@ -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 View File

@@ -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">


Loading…
Cancel
Save