svn commit: r43567 - in head: en_US.ISO8859-1/htdocs/news/status share/xml
Gabor Kovesdan
gabor at FreeBSD.org
Sun Jan 19 12:40:14 UTC 2014
Author: gabor
Date: Sun Jan 19 12:40:13 2014
New Revision: 43567
URL: http://svnweb.freebsd.org/changeset/doc/43567
Log:
- Add a sponsor element to the status report DTD so that sponsores can be
mentioned in a unified manner
- Generate sponsor entries into the output
- Update the template
Requested by: theraven
Modified:
head/en_US.ISO8859-1/htdocs/news/status/report-sample.xml
head/en_US.ISO8859-1/htdocs/news/status/report.xsl
head/share/xml/statusreport.dtd
Modified: head/en_US.ISO8859-1/htdocs/news/status/report-sample.xml
==============================================================================
--- head/en_US.ISO8859-1/htdocs/news/status/report-sample.xml Sun Jan 19 07:54:35 2014 (r43566)
+++ head/en_US.ISO8859-1/htdocs/news/status/report-sample.xml Sun Jan 19 12:40:13 2014 (r43567)
@@ -51,6 +51,9 @@
in this area.</p>
</body>
+ <sponsor>Optional sponsor</sponsor>
+ <sponsor>Another one</sponsor>
+
<!-- Optional section for listing tasks. -->
<help>
<task>If help is needed, make this explicit!</task>
Modified: head/en_US.ISO8859-1/htdocs/news/status/report.xsl
==============================================================================
--- head/en_US.ISO8859-1/htdocs/news/status/report.xsl Sun Jan 19 07:54:35 2014 (r43566)
+++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Sun Jan 19 12:40:13 2014 (r43567)
@@ -93,6 +93,22 @@
<xsl:apply-templates select="body"/>
+ <xsl:if test="sponsor">
+ <xsl:variable name="sponsors">
+ <xsl:for-each select="sponsor">
+ <xsl:value-of select="."/>
+ <xsl:choose>
+ <xsl:when test="position() = last()">.</xsl:when>
+ <xsl:when test="position() = (last() - 1)"> and </xsl:when>
+ <xsl:when test="position() < (last() - 1)">, </xsl:when>
+ <xsl:otherwise>.</xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:variable>
+
+ <p>This project was sponsored by <xsl:value-of select="$sponsors"/></p>
+ </xsl:if>
+
<xsl:apply-templates select="help"/>
<hr/>
Modified: head/share/xml/statusreport.dtd
==============================================================================
--- head/share/xml/statusreport.dtd Sun Jan 19 07:54:35 2014 (r43566)
+++ head/share/xml/statusreport.dtd Sun Jan 19 12:40:13 2014 (r43567)
@@ -44,7 +44,7 @@
id ID #IMPLIED
>
-<!ELEMENT project (title, contact, links, body, help?)>
+<!ELEMENT project (title, contact, links, body, sponsor*, help?)>
<!ATTLIST project
id ID #IMPLIED
cat CDATA #REQUIRED
@@ -86,6 +86,8 @@
href CDATA #REQUIRED
>
+<!ELEMENT sponsor (#PCDATA)>
+
<!ELEMENT help (task)+>
<!ATTLIST help
id ID #IMPLIED
More information about the svn-doc-all
mailing list