Date: Tue, 20 May 2014 19:25:44 +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: r44887 - head/en_US.ISO8859-1/htdocs/news/status Message-ID: <201405201925.s4KJPiaE042157@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405201925.s4KJPiaE042157>