svn commit: r45409 - head/share/xml

Gavin Atkinson <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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">
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.