svn commit: r48158 - head/en_US.ISO8859-1/htdocs/news/status
Warren Block <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
Author: wblock Date: Mon Feb 8 19:58:04 2016 New Revision: 48158 URL: https://svnweb.freebsd.org/changeset/doc/48158 Log: Make category names into section links. 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 Mon Feb 8 18:45:13 2016 (r48157) +++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Mon Feb 8 19:58:04 2016 (r48158) @@ -28,7 +28,10 @@ <!-- Generate a table of contents, sorted --> <xsl:for-each select="report/category"> - <h3><xsl:value-of select="description"/></h3> + <!-- category title and link --> + <h3><a><xsl:attribute name="href">#<xsl:value-of + select="translate(description,' ', '-')"/></xsl:attribute> + <xsl:value-of select="description"/></a></h3> <xsl:variable name="cat-short" select="name"/> <ul> <xsl:for-each select="//project[@cat=$cat-short and @summary]"> @@ -66,6 +69,13 @@ <xsl:choose> <xsl:when test="report/category"> <xsl:for-each select="report/category"> + + <!-- category title --> + <br/><h1><a> + <xsl:attribute name="name"><xsl:value-of select="translate(description, ' ', '-')"/></xsl:attribute> + <xsl:attribute name="href">#<xsl:value-of select="translate(description, ' ', '-')"/></xsl:attribute> + <xsl:value-of select="description"/></a></h1><br/> + <xsl:variable name="cat-short" select="name"/> <xsl:apply-templates select="//project[@cat=$cat-short]"> <xsl:sort select="translate(title, $lowercase, $uppercase)"/> _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-doc-all To unsubscribe, send any mail to "[email protected]"