Add support for a summary attribute which should be sorted above other

projects in the same category.  This way the Summer of Code summary
project report precedes the individual student status reports rather
than appearing alphabetically sorted.

Update last years summer of code summary with this attribute.

Discussed with:	  brd
This commit is contained in:
Murray Stokely 2007-10-08 21:16:38 +00:00
parent b688b333e3
commit 7ced6c6b20
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=30876
2 changed files with 12 additions and 4 deletions

View file

@ -2,7 +2,7 @@
<!DOCTYPE report PUBLIC "-//FreeBSD//DTD FreeBSD XML Database for Status
Report//EN"
"http://www.FreeBSD.org/XML/www/share/sgml/statusreport.dtd">
<!-- $FreeBSD: www/en/news/status/report-2006-06-2006-10.xml,v 1.3 2007/02/02 07:41:09 joel Exp $ -->
<!-- $FreeBSD: www/en/news/status/report-2006-06-2006-10.xml,v 1.4 2007/04/11 04:11:09 brd Exp $ -->
<report>
<date>
<month>July-September</month>
@ -189,7 +189,7 @@ Report//EN"
</help>
</project>
<project cat='soc'>
<project cat='soc' summary='t'>
<title>Summer of Code Summary</title>
<contact>

View file

@ -7,7 +7,7 @@
<!ENTITY % navinclude.about "INCLUDE">
]>
<!-- $FreeBSD: www/en/news/status/report.xsl,v 1.10 2006/08/19 21:20:40 hrs Exp $ -->
<!-- $FreeBSD: www/en/news/status/report.xsl,v 1.11 2007/04/10 03:35:31 brd Exp $ -->
<!-- Standard header material -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
@ -54,7 +54,15 @@
<h3><xsl:value-of select="description"/></h3>
<xsl:variable name="cat-short" select="name"/>
<ul>
<xsl:for-each select="//project[@cat=$cat-short]">
<xsl:for-each select="//project[@cat=$cat-short and @summary]">
<xsl:sort select="translate(title, $lcletters, $ucletters)"/>
<li><a><xsl:attribute name="href">#<xsl:value-of
select="translate(title, ' ',
'-')"/></xsl:attribute><xsl:value-of select="title"/></a>
</li>
</xsl:for-each>
<xsl:for-each select="//project[@cat=$cat-short and not(@summary)]">
<xsl:sort select="translate(title, $lcletters, $ucletters)"/>
<li><a><xsl:attribute name="href">#<xsl:value-of
select="translate(title, ' ',