Date: Wed, 6 Aug 2014 17:12:21 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r45409 - head/share/xml Message-ID: <53e261f5.54fb.7d67c868@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gavin Date: Wed Aug 6 17:12:20 2014 New Revision: 45409 URL: http://svnweb.freebsd.org/changeset/doc/45409 Log: Simplify xslt for generating the commercial section: $pagename is always set correctly, so just use it. Modified: head/share/xml/templates.entries.xsl Modified: head/share/xml/templates.entries.xsl ============================================================================== --- head/share/xml/templates.entries.xsl Wed Aug 6 17:00:05 2014 (r45408) +++ head/share/xml/templates.entries.xsl Wed Aug 6 17:12:20 2014 (r45409) @@ -46,25 +46,13 @@ of vendors in our list does not signify our endorsement of their products or services by the FreeBSD Project.</p> - <xsl:choose> - <xsl:when test="$basename = 'software.html'"> - <h2>Software Vendors</h2> - - <p>This file has been divided into sub-categories for your - convenience. The following shortcuts will take you to the - proper gallery entries.</p> - - </xsl:when> - <xsl:when test="$basename = 'consult.html'"> - <h2>Consulting Services</h2> + <h2><xsl:value-of select="$pagename" /></h2> - <p>This file has been divided into sub-categories for your convenience. - The following shortcuts will take you to the proper gallery entries.</p> - </xsl:when> - <xsl:otherwise> - <h2><xsl:value-of select="$pagename" /></h2> - </xsl:otherwise> - </xsl:choose> + <xsl:if test="$basename = 'software.html' or $basename = 'consult.html'"> + <p>This file has been divided into sub-categories for your + convenience. The following shortcuts will take you to the + proper gallery entries.</p> + </xsl:if> </xsl:template> <xsl:template name="html-commercial-listing">
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e261f5.54fb.7d67c868>
