Date: Tue, 11 Jan 2005 18:29:49 +0100 (CET) From: Rudolf Cejka <cejkar@fit.vutbr.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/76112: Translated press news and anchors for news and press do not work Message-ID: <200501111729.j0BHTn4g040444@kazi.fit.vutbr.cz> Resent-Message-ID: <200501111730.j0BHUk0O059393@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76112 >Category: docs >Synopsis: Translated press news and anchors for news and press do not work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 11 17:30:44 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rudolf Cejka >Release: FreeBSD 4.9-STABLE i386 >Organization: FIT, Brno University of Technology, Czech Republic >Environment: >Description: Translated press news on the main index page do not work and just original english records are displayed. The following patch to includes.misc.xsl 1.19 helps to me: --- includes.misc.xsl.orig Tue Jan 11 18:18:54 2005 +++ includes.misc.xsl Tue Jan 11 18:19:13 2005 @@ -664,8 +664,8 @@ <xsl:param name="news.press.xml" select="''" /> <xsl:for-each select="document($news.press.xml-master)/descendant::story[position() <= 5]"> - <xsl:param name="year" select="../../year/name" /> - <xsl:param name="month" select="../month/name" /> + <xsl:param name="year" select="ancestor::year/name" /> + <xsl:param name="month" select="ancestor::month/name" /> <xsl:param name="pos" select="position()" /> <xsl:param name="url" select="url" /> <xsl:param name="site-url" select="site-url" /> The next problem is that after massive upgrade of includes.misc.xsl anchors do not work for news and press from main index page to newsflash.html and press.html. The problem is that index page is generated so that generate-story-anchor and generate-event-anchor are used with anchor format #storyYM:N or #eventYMD:N, whereas newsflash.html and press.html use html-news-generate-anchor with formatted Y to 4 digits and M, D and N to 2 digits. >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?200501111729.j0BHTn4g040444>