Simplify xslt for generating the commercial section: $pagename is

always set correctly, so just use it.
This commit is contained in:
Gavin Atkinson 2014-08-06 17:12:20 +00:00
parent 628a079911
commit e638c5f259
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45409

View file

@ -46,25 +46,13 @@
of vendors in our list does not signify our endorsement of their products or of vendors in our list does not signify our endorsement of their products or
services by the FreeBSD Project.</p> services by the FreeBSD Project.</p>
<xsl:choose> <h2><xsl:value-of select="$pagename" /></h2>
<xsl:when test="$basename = 'software.html'">
<h2>Software Vendors</h2>
<p>This file has been divided into sub-categories for your <xsl:if test="$basename = 'software.html' or $basename = 'consult.html'">
convenience. The following shortcuts will take you to the <p>This file has been divided into sub-categories for your
proper gallery entries.</p> convenience. The following shortcuts will take you to the
proper gallery entries.</p>
</xsl:when> </xsl:if>
<xsl:when test="$basename = 'consult.html'">
<h2>Consulting Services</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:template> </xsl:template>
<xsl:template name="html-commercial-listing"> <xsl:template name="html-commercial-listing">