Date: Wed, 16 Apr 2014 12:29:33 +0000 (UTC) From: Gabor Pali <pgj@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44572 - head/en_US.ISO8859-1/htdocs/news/status Message-ID: <201404161229.s3GCTXrL010587@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pgj Date: Wed Apr 16 12:29:32 2014 New Revision: 44572 URL: http://svnweb.freebsd.org/changeset/doc/44572 Log: - Match order of projects in the report body with their order in the table of contents when producing the HTML output Reviewed by: gabor Modified: head/en_US.ISO8859-1/htdocs/news/status/report.xsl Modified: head/en_US.ISO8859-1/htdocs/news/status/report.xsl ============================================================================== --- head/en_US.ISO8859-1/htdocs/news/status/report.xsl Tue Apr 15 23:00:32 2014 (r44571) +++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Wed Apr 16 12:29:32 2014 (r44572) @@ -60,10 +60,15 @@ <hr/> - <!-- Process each project, sorted --> - <xsl:apply-templates select="report/project"> - <xsl:sort select="translate(title, $lowercase, $uppercase)"/> - </xsl:apply-templates> + <!-- For each category, process the corresponding projects and sort + them by title, so they will be listed in the same order as + they are in the table of contents --> + <xsl:for-each select="report/category"> + <xsl:variable name="cat-short" select="name"/> + <xsl:apply-templates select="//project[@cat=$cat-short]"> + <xsl:sort select="translate(title, $lowercase, $uppercase)"/> + </xsl:apply-templates> + </xsl:for-each> <!-- Standard footer --> <a href="../news.html">News Home</a> | <a href="status.html">Status Home</a>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404161229.s3GCTXrL010587>