docs/76112: Translated press news and anchors for news and press do not work

Rudolf Cejka cejkar at fit.vutbr.cz
Tue Jan 11 17:30:47 UTC 2005


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



More information about the freebsd-doc mailing list