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