www/92474: [patch] fix for the xsl template
Daniel Gerzo
danger at rulez.sk
Sat Jan 28 14:10:06 PST 2006
>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:
More information about the freebsd-www
mailing list