Date: Fri, 17 Jul 2015 14:15:36 +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: r47005 - head/en_US.ISO8859-1/htdocs/news/status Message-ID: <201507171415.t6HEFaob016855@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wblock Date: Fri Jul 17 14:15:35 2015 New Revision: 47005 URL: https://svnweb.freebsd.org/changeset/doc/47005 Log: New feature: show URL descriptions, not just links. Bug fix: trim whitespace from sponsor names. Approved by: doceng (implicit) 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 Fri Jul 17 14:08:00 2015 (r47004) +++ head/en_US.ISO8859-1/htdocs/news/status/report.xsl Fri Jul 17 14:15:35 2015 (r47005) @@ -110,7 +110,7 @@ <xsl:if test="sponsor"> <xsl:variable name="sponsors"> <xsl:for-each select="sponsor"> - <xsl:value-of select="."/> + <xsl:value-of select="normalize-space()"/> <xsl:choose> <xsl:when test="position() = last()">.</xsl:when> <xsl:when test="position() = (last() - 1)">, and </xsl:when> @@ -141,19 +141,32 @@ </p> </xsl:template> - <!-- Create a paragraph to hold the link information. Iterate over each - <url> element, copying their data in. All but the last link has a - terminating <br> in the output. --> + <!-- Create a table to hold the link information. Iterate over each + <url> element, adding a row to hold the description and URL. + Both work as links. --> <xsl:template match="links"> - <p> + <table title="Links"> + <tr> + <td>Links</td> + </tr> <xsl:for-each select="url"> - URL: - <a href="{@href}" title="{.}"> <!-- Copy in the href attribute --> - <xsl:value-of select="@href"/> - </a> - <xsl:if test="position() != last()"><br/></xsl:if> + <tr> + <td> + <a href="{@href}" title="{@href}"> + <xsl:value-of select="normalize-space()"/> + </a> + </td> + <td> + URL: <a href="{@href}"> + <xsl:attribute name="title"> + <xsl:value-of select="normalize-space()"/> + </xsl:attribute> + <xsl:value-of select="@href"/> + </a> + </td> + </tr> </xsl:for-each> - </p> + </table> </xsl:template> <!-- Body is a doddle. Since it contains HTML we just copy in all the
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507171415.t6HEFaob016855>