Bug 76112 - Translated press news and anchors for news and press do not work
Summary: Translated press news and anchors for news and press do not work
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 17:30 UTC by Rudolf Čejka
Modified: 2005-03-16 16:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Čejka 2005-01-11 17:30:44 UTC
 
 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() &lt;= 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.
Comment 1 Rudolf Čejka 2005-01-18 13:48:53 UTC
Hello,
  I'm sorry, but I have incorrectly used category docs instead of
www - please, could you, people from www group, loot at it? Thanks.
(The full path to the file is www/share/sgml/includes.misc.xsl.)
 
FreeBSD-gnats-submit@FreeBSD.org wrote (2005/01/11):
> Thank you very much for your problem report.
> It has the internal identification `docs/76112'.
> The individual assigned to look at your
> report is: freebsd-doc. 
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=76112
> 
> >Category:       docs
> >Responsible:    freebsd-doc
> >Synopsis:       Translated press news and anchors for news and press do not work
> >Arrival-Date:   Tue Jan 11 17:30:44 GMT 2005

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic
Comment 2 Giorgos Keramidas freebsd_committer freebsd_triage 2005-01-18 16:05:53 UTC
Responsible Changed
From-To: freebsd-doc->freebsd-www

Reassign to www, since this is more related to the web site.
Comment 3 Rudolf Čejka 2005-03-16 10:34:39 UTC
Hello, the problems mentioned in PR docs/76112 have been solved recently
in www/share/sgml/includes.misc.xsl 1.20, so you can close this PR now.

Thanks.

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic
Comment 4 Remko Lodder freebsd_committer freebsd_triage 2005-03-16 16:49:38 UTC
State Changed
From-To: open->closed

The submitted told that revision 1.20 of www/share/sgml/includes.misc.xsl had 
fixed the problem. So it can be closed. Thanks for the notification!