Date: Thu, 9 Nov 2006 13:08:57 +0100 (CET) From: Rudolf Cejka <cejkar@fit.vutbr.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: www/105333: [PATCH] Base selection in events in libcommon.xsl does not work Message-ID: <200611091208.kA9C8vgV036712@kazi.fit.vutbr.cz> Resent-Message-ID: <200611091210.kA9CAIaI042735@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 105333 >Category: www >Synopsis: [PATCH] Base selection in events in libcommon.xsl does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 09 12:10:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rudolf Cejka >Release: FreeBSD 6.1-STABLE i386 >Organization: FIT, Brno University of Technology, Czech Republic >Environment: >Description: There is code .if exists(${WEB_PREFIX}/${WWW_LANGCODE}/share/sgml/events.xml) XML_EVENTS_EVENTS= ${WEB_PREFIX}/${WWW_LANGCODE}/share/sgml/events.xml .else XML_EVENTS_EVENTS= ${XML_EVENTS_EVENTS_MASTER} .endif in doc/share/mk/doc.xml.mk, so if there is no localized events.xml file, $xml.events is not empty, but it is the same as $xml.events-master, so code $events.xml = 'none' is never satisfied. Patch below solves this problem and when there is no localized events.xml, proper base &enbase; is selected. --- www/share/sgml/libcommon.xsl.orig Thu Nov 9 13:03:13 2006 +++ www/share/sgml/libcommon.xsl Thu Nov 9 13:03:31 2006 @@ -1083,7 +1083,7 @@ <a> <xsl:attribute name="href"> <xsl:choose> - <xsl:when test="$events.xml = 'none'">&enbase;/</xsl:when> + <xsl:when test="$events.xml = $events.xml-master">&enbase;/</xsl:when> <xsl:otherwise>&base;/</xsl:otherwise> </xsl:choose> <xsl:text>events/#event:</xsl:text><xsl:value-of select='@id' /> >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611091208.kA9C8vgV036712>