Date: Mon, 8 Feb 2016 19:58:04 +0000 (UTC) From: Warren Block <wblock@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r48158 - head/en_US.ISO8859-1/htdocs/news/status Message-ID: <201602081958.u18Jw4vi015664@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)"/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602081958.u18Jw4vi015664>