svn commit: r45409 - head/share/xml
Gavin Atkinson
gavin at FreeBSD.org
Wed Aug 6 17:12:21 UTC 2014
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">
More information about the svn-doc-all
mailing list