svn commit: r44887 - head/en_US.ISO8859-1/htdocs/news/status
Gabor Pali
pgj at FreeBSD.org
Tue May 20 19:25:44 UTC 2014
Author: pgj
Date: Tue May 20 19:25:43 2014
New Revision: 44887
URL: http://svnweb.freebsd.org/changeset/doc/44887
Log:
- Fix generation of the reports when they do not have a project attribute,
such as developer summit special reports
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 May 20 18:35:23 2014 (r44886)
+++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Tue May 20 19:25:43 2014 (r44887)
@@ -63,12 +63,21 @@
<!-- 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>
+ <xsl:choose>
+ <xsl:when test="report/category">
+ <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>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="report/project">
+ <xsl:sort select="translate(title, $lowercase, $uppercase)"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
<!-- 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