assets/index.xsl in cobench-0.0.9 vs assets/index.xsl in cobench-0.0.10

- old
+ new

@@ -22,10 +22,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output encoding="UTF-8" method="html"/> + <xsl:param name="version"/> + <xsl:key name="titles" match="/cobench/titles/title" use="."/> <xsl:template match="/"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>cobench</title> @@ -67,10 +69,12 @@ <footer> <p> <xsl:text>The page was generated by </xsl:text> <a href="https://github.com/yegor256/cobench"> <xsl:text>cobench</xsl:text> + <xsl:text> </xsl:text> + <xsl:value-of select="$version"/> </a> <xsl:text> on </xsl:text> <xsl:value-of select="cobench/@time"/> <xsl:text>.</xsl:text> </p> @@ -89,10 +93,10 @@ </xsl:template> <xsl:template match="cobench/titles"> <thead> <tr> <th/> - <xsl:for-each select="title"> + <xsl:for-each select="title[generate-id() = generate-id(key('titles', .)[1])]"> <xsl:sort select="."/> <th class="sorter num"> <xsl:value-of select="."/> </th> </xsl:for-each>