Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2006 22:09:30 +0000 (UTC)
From:      Daniel Gerzo <danger@rulez.sk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   www/92474: [patch] fix for the xsl template
Message-ID:  <20060128220930.AB8FF4845E4@tomas.elvandar.org>
Resent-Message-ID: <200601282210.k0SMA5S1047328@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92474
>Category:       www
>Synopsis:       [patch] fix for the xsl template
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 28 22:10:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Gerzo
>Release:        FreeBSD 6.0 i386
>Organization:
rulez.sk
>Environment:
System: FreeBSD 6.0-RELEASE #3: Fri Nov 4 21:58:23 CET 2005
>Description:
the current www/share/sgml/includes.header.xsl is buggy, since the "if"
statement is wrong there according to the comment in the
www/share/sgml/includes.release.xsl file which says: 

"An upcoming release that we want tested.  Set $beta.testing to 0
if we're not in the middle of a release cycle.  Ha ha."

As we are not in the middle of RC (and the $beta.testing is set to '0'),
the web pages generated from xsl are still containing URLs for 6.0-RC1
because of this wrong "if".
>How-To-Repeat:
check some web page generated from xsl template including links to the
release/download menu
>Fix:
Use this patch:

--- includes.header.xsl.diff begins here ---
--- /usr/home/danger/www/share/sgml/includes.header.xsl~	Sun Jan  1 23:28:12 2006
+++ /usr/home/danger/www/share/sgml/includes.header.xsl	Sat Jan 28 21:58:20 2006
@@ -197,7 +197,7 @@
 				<li><a href="{$u.rel.announce}">Production Release: <xsl:value-of select="$rel.current"/></a></li>
 				<li><a href="{$u.rel2.announce}">Production (Legacy) Release: <xsl:value-of select="$rel2.current"/></a></li>
 				<li><a href="{$base}/snapshots/">Snapshot Releases</a></li>
-				<xsl:if test="$beta.testing != ''">
+				<xsl:if test="$beta.testing != '0'">
 				  <li><a href="{$base}/where.html">Upcoming Release <xsl:value-of
 				    select="concat($betarel.current, '-', $betarel.vers)"/></a>
 				  </li>
--- includes.header.xsl.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060128220930.AB8FF4845E4>