www/105333: [PATCH] Base selection in events in libcommon.xsl does not work

Rudolf Cejka cejkar at fit.vutbr.cz
Thu Nov 9 12:10:22 UTC 2006


>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:


More information about the freebsd-www mailing list