diff options
Diffstat (limited to 'source/99_result/category')
-rw-r--r-- | source/99_result/category/category.xsl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/99_result/category/category.xsl b/source/99_result/category/category.xsl index ef6f388..2b54348 100644 --- a/source/99_result/category/category.xsl +++ b/source/99_result/category/category.xsl @@ -2,6 +2,7 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:math="http://exslt.org/math" > <xsl:include href="[utility/master.xsl]"/> @@ -17,9 +18,18 @@ </xsl:template> <xsl:template match="category/entry"> + <h3> + <xsl:text>All pages categorized as »</xsl:text> + <xsl:value-of select="@handle"/> + <xsl:text>« in random order</xsl:text> + </h3> <div class="archiv columns"> <ul class="prettylist"> - <xsl:apply-templates /> + <xsl:for-each select="page"> + <xsl:sort select="position() mod math:random()" order="descending"/> + + <xsl:apply-templates select="."/> + </xsl:for-each> </ul> </div> </xsl:template> |