svn commit: r44572 - head/en_US.ISO8859-1/htdocs/news/status

Gabor Pali pgj at FreeBSD.org
Wed Apr 16 12:29:33 UTC 2014


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>


More information about the svn-doc-all mailing list