svn path=/trunk/; revision=20099

This commit is contained in:
nicoulas 2011-03-25 18:38:57 +00:00
parent be9c4e9a03
commit e4e200954f
2 changed files with 10 additions and 4 deletions

View File

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

View File

@ -121,6 +121,15 @@
<!--display dynamic list of tags used in news--> <!--display dynamic list of tags used in news-->
<xsl:template name="all-tags-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:element name="ul">
<xsl:attribute name="class">taglist</xsl:attribute> <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 --> → 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: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:if test="generate-id() = generate-id(key('news-tags-by-value', normalize-space(.)))">
<xsl:element name="li"> <xsl:element name="li">