- Fix generation of the reports when they do not have a project attribute,
such as developer summit special reports
This commit is contained in:
parent
5477b11a46
commit
38065ab072
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44887
1 changed files with 15 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue