PERFORCE change 158428 for review
Gabor Pali
pgj at FreeBSD.org
Fri Feb 27 20:42:57 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=158428
Change 158428 by pgj at beehive on 2009/02/28 04:42:04
- Extend main page translation by the following items (starting from the
year 2009):
- Project news entries (HTML, RSS, RDF)
- Press releases (HTML, RSS)
- Events (HTML, RSS)
- Work around missing l10n features in events/libcommon.xsl
Affected files ...
.. //depot/projects/docproj_hu/www/hu/Makefile#2 edit
.. //depot/projects/docproj_hu/www/hu/events/Makefile#1 add
.. //depot/projects/docproj_hu/www/hu/events/Makefile.inc#1 add
.. //depot/projects/docproj_hu/www/hu/events/events.css#1 add
.. //depot/projects/docproj_hu/www/hu/events/rss.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/index.xsl#17 edit
.. //depot/projects/docproj_hu/www/hu/news/Makefile#2 edit
.. //depot/projects/docproj_hu/www/hu/share/sgml/events.xml#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/libcommon.xsl#7 edit
.. //depot/projects/docproj_hu/www/hu/share/sgml/news.xml#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/press.xml#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.events.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.news-rdf.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.news-rss.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.newsflash.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.pastevents.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.press-rss.xsl#1 add
.. //depot/projects/docproj_hu/www/hu/share/sgml/templates.press.xsl#1 add
Differences ...
==== //depot/projects/docproj_hu/www/hu/Makefile#2 (text+ko) ====
@@ -34,10 +34,11 @@
SUBDIR+= developers
SUBDIR+= docproj
SUBDIR+= docs
+SUBDIR+= events
SUBDIR+= news
SUBDIR+= platforms
+SUBDIR+= projects
SUBDIR+= search
-SUBDIR+= projects
SUBDIR+= support
.if !defined(WEB_ONLY) || empty(WEB_ONLY)
SUBDIR+= doc
==== //depot/projects/docproj_hu/www/hu/index.xsl#17 (text+ko) ====
@@ -44,9 +44,9 @@
<link rel="alternate stylesheet" media="screen" href="&enbase;/layout/css/fixed_large.css" type="text/css" title="Large Text" />
<script type="text/javascript" src="&enbase;/layout/js/styleswitcher.js"></script>
<link rel="alternate" type="application/rss+xml"
- title="FreeBSD Projekt Hírek" href="&base;/news/rss.xml" />
+ title="A &os; Projekt hírei" href="&base;/news/rss.xml" />
<link rel="alternate" type="application/rss+xml"
- title="FreeBSD Biztonsági Bejelentések" href="&enbase;/security/rss.xml" />
+ title="A &os; Projekt biztonsági figyelmeztetései" href="&base;/security/rss.xml" />
<!-- Formatted to be easy to spam harvest, please do not reformat. -->
<xsl:comment>
@@ -122,7 +122,7 @@
</li>
<li>
<a
- href="&u.rel2.announce;">Stabil (hagyományos) kiadás: &rel2.current;</a>
+ href="&u.rel2.announce;">Stabil (kifutó) kiadás: &rel2.current;</a>
</li>
<xsl:if test="'&beta.testing;' != 'IGNORE'">
<li>
@@ -246,11 +246,11 @@
<ul class="newseventslist">
<li class="first-child">
<a
- href="&enbase;/news/newsflash.html" title="További hírek">További hírek</a>
+ href="&base;/news/newsflash.html" title="További hírek">További hírek</a>
</li>
<li class="last-child">
<a
- href="&enbase;/news/rss.xml" title="Hírek RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="Hírek RSS Feed" /></a>
+ href="&base;/news/rss.xml" title="Hírek RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="Hírek RSS Feed" /></a>
</li>
</ul>
</div> <!-- unnamed -->
@@ -274,7 +274,7 @@
<ul class="newseventslist">
<li class="only-child">
<a
- href="&enbase;/events/" title="További események">További események</a>
+ href="&base;/events/" title="További események">További események</a>
</li>
</ul>
</div> <!-- unnamed -->
@@ -298,7 +298,7 @@
<ul class="newseventslist">
<li class="only-child">
<a
- href="&enbase;/news/press.html" title="Tovább események a médiában">Tovább</a>
+ href="&base;/news/press.html" title="Tovább események a médiában">Tovább</a>
</li>
</ul>
</div> <!-- unnamed -->
@@ -323,11 +323,11 @@
<ul class="newseventslist">
<li class="first-child">
<a
- href="&enbase;/security/advisories.html" title="További biztonsági figyelmeztetések">Tovább</a>
+ href="&base;/security/advisories.html" title="További biztonsági figyelmeztetések">Tovább</a>
</li>
<li class="last-child">
<a
- href="&enbase;/security/rss.xml" title="Biztonsági figyelmeztetések RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="Biztonsági figyelmeztetések RSS Feed" /></a>
+ href="&base;/security/rss.xml" title="Biztonsági figyelmeztetések RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="Biztonsági figyelmeztetések RSS Feed" /></a>
</li>
</ul>
</div> <!-- unnamed -->
==== //depot/projects/docproj_hu/www/hu/news/Makefile#2 (text+ko) ====
@@ -14,8 +14,10 @@
DEPENDSET.DEFAULT= transtable news press
-XMLDOCS= newsflash:${XSL_NEWS_NEWSFLASH}:${XML_NEWS_NEWS_MASTER}:
-XMLDOCS+= news-rdf:${XSL_NEWS_NEWS_RDF}:${XML_NEWS_NEWS_MASTER}:news.rdf
-XMLDOCS+= press:${XSL_NEWS_PRESS}:${XML_NEWS_PRESS_MASTER}:
+XMLDOCS= newsflash:../share/sgml/templates.newsflash.xsl:${XML_NEWS_NEWS}:
+XMLDOCS+= news-rdf:../share/sgml/templates.news-rdf.xsl:${XML_NEWS_NEWS}:news.rdf
+XMLDOCS+= news-rss:../share/sgml/templates.news-rss.xsl:${XML_NEWS_NEWS}:rss.xml
+XMLDOCS+= press:../share/sgml/templates.press.xsl:${XML_NEWS_PRESS}:
+XMLDOCS+= press-rss:../share/sgml/templates.press-rss.xsl:${XML_NEWS_PRESS}:press-rss.xml
.include "${WEB_PREFIX}/share/mk/web.site.mk"
==== //depot/projects/docproj_hu/www/hu/share/sgml/libcommon.xsl#7 (text+ko) ====
@@ -5,11 +5,455 @@
<!-- The FreeBSD Hungarian Documentation Project
Translated by: Gabor Kovesdan <gabor at FreeBSD.org>
- %SOURCE% en/share/sgml/libcommon.xsl
- %SRCID% 1.1
+ %SOURCE% share/sgml/libcommon.xsl
+ %SRCID% 1.27
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/libcommon.xsl"/>
+ <xsl:param name="param-l10n-date-format-YMD"
+ select="'%Y-%M-%D'" />
+ <xsl:param name="param-l10n-date-format-YM"
+ select="'%Y %M'" />
+ <xsl:param name="param-l10n-date-format-MD"
+ select="'%M %D'" />
+ <xsl:param name="param-l10n-date-format-rfc822"
+ select="'%Y %m %D 00:00:00 CET, %W'" />
+
+ <xsl:template name="html-usergroups-list-header">
+ <p>A &os; népszerûsége nyomán a
+ világban létrejött számos
+ felhasználói csoport.</p>
+
+ <p>Ha tudomásunk van olyan további &os;
+ felhasználói csoportokról, amelyek az
+ alábbi felsorolásban még nem szerepelnek,
+ küldjünk egy <a
+ href="http://www.freebsd.org/hu/send-pr.html">hibajelentést</a>
+ a <q>www</q> kategóriában a következõ
+ adatok megadásával:</p>
+
+ <ol>
+ <li>A felhasználói csoport honlapjának
+ címe.</li>
+
+ <li>Egy kapcsolattartó személy e-mail címe a
+ látogatóink és a honlapunk
+ karbantartóinak számára.</li>
+
+ <li>A felhasználói csoport tömör (egy
+ bekezdésnyi) bemutatása.</li>
+ </ol>
+
+ <p>Az elõbb felsorolt információkat
+ kérjük HTML formátumban beküldeni. A &os;
+ lendületének megõrzésének
+ szellemében elsõsorban olyan
+ felhasználói csoportok jelentkezését
+ várjuk, amelyek aktívak és
+ tevékenységük nyilvános. Ha még
+ nem lenne a környékünkön ilyen csoport,
+ akkor javasoljuk, hogy kutassunk fel és vegyünk fel
+ kapcsolatot a közelünkben élõ
+ érdeklõdõkkel, például a <a
+ href="http://bsd.meetup.com/"></a> oldalon keresztül,
+ és alapítsunk egy saját
+ felhasználói csoportot.</p>
+
+ <h3>Régiók:</h3>
+ </xsl:template>
+
+ <xsl:template name="html-news-list-newsflash-preface">
+ <img src="&enbase;/gifs/news.jpg" align="right" border="0" width="193"
+ height="144" alt="&os; hírek"/>
+
+ <p>A &os; operációs rendszer dinamikusan és
+ gyorsan fejlõdik, ezért a legfrissebb
+ fejlesztések nyomonkövetése nem mindig
+ könnyû feladat. Ha kíváncsiak vagyunk a
+ rendszerrel kapcsolatos legújabb
+ információkra, térjünk vissza erre az
+ oldalra gyakran. Emellett érdemes lehet még
+ feliratkoznunk a <a
+ href="&base;/doc/hu/books/handbook/eresources.html#ERESOURCES-MAIL">freebsd-announce
+ levelezési listára</a>, vagy a
+ hozzátartozó <a href="rss.xml">RSS feed</a>re.</p>
+
+ <p>Továbbá az alábbi projektek rendelkeznek
+ saját külön híroldallal, amelyek figyelemmel
+ kísérésével pedig az adott projektben
+ végzett munkáról tudhatunk meg
+ többet.</p>
+
+ <ul>
+ <li><a href="&enbase;/java/newsflash.html">&os; &java;</a></li>
+
+ <li><a href="http://freebsd.kde.org/">&os; KDE</a></li>
+
+ <li><a href="&enbase;/gnome/newsflash.html">&os; GNOME</a></li>
+ </ul>
+
+ <p>A korábbi, a jelenlegi és a jövõbeni
+ kiadásokról bõvebben a <strong><a
+ href="&enbase;/releases/index.html">kiadások
+ információs oldalán</a></strong>
+ olvashatunk.</p>
+
+ <p>A &os; Projekt biztonsági figyelmeztetéseit a <a
+ href="&enbase;/security/#adv">biztonsági
+ információs oldalon</a> találjuk meg.</p>
+ </xsl:template>
+
+ <xsl:template name="html-news-make-olditems-list">
+ <p>Korábbi bejelentések:
+ <a href="&enbase;/news/2008/index.html">2008</a>,
+ <a href="&enbase;/news/2007/index.html">2007</a>,
+ <a href="&enbase;/news/2006/index.html">2006</a>,
+ <a href="&enbase;/news/2005/index.html">2005</a>,
+ <a href="&enbase;/news/2004/index.html">2004</a>,
+ <a href="&enbase;/news/2003/index.html">2003</a>,
+ <a href="&enbase;/news/2002/index.html">2002</a>,
+ <a href="&enbase;/news/2001/index.html">2001</a>,
+ <a href="&enbase;/news/2000/index.html">2000</a>,
+ <a href="&enbase;/news/1999/index.html">1999</a>,
+ <a href="&enbase;/news/1998/index.html">1998</a>,
+ <a href="&enbase;/news/1997/index.html">1997</a>,
+ <a href="&enbase;/news/1996/index.html">1996</a></p>
+ </xsl:template>
+
+ <xsl:template name="html-news-list-newsflash-homelink">
+ <a href="&base;/news/news.html">Hírek fõoldal</a>
+ </xsl:template>
+
+ <xsl:template name="html-press-make-olditems-list">
+ <p>Korábbi sajtókiadványok:
+ <a href="&enbase;/news/2008/press.html">2008</a>,
+ <a href="&enbase;/news/2007/press.html">2007</a>,
+ <a href="&enbase;/news/2006/press.html">2006</a>,
+ <a href="&enbase;/news/2005/press.html">2005</a>,
+ <a href="&enbase;/news/2004/press.html">2004</a>,
+ <a href="&enbase;/news/2003/press.html">2003</a>,
+ <a href="&enbase;/news/2002/press.html">2002</a>,
+ <a href="&enbase;/news/2001/press.html">2001</a>,
+ <a href="&enbase;/news/2000/press.html">2000</a>,
+ <a href="&enbase;/news/1999/press.html">1999</a>,
+ <a href="&enbase;/news/1998/press.html">1998-1996</a></p>
+ </xsl:template>
+
+ <xsl:template name="html-news-list-press-preface">
+ <p>Ha tudunk bármilyen olyan &os; témájú
+ hírrõl vagy egyéb írásról,
+ amely nem szerepel az itteniek között, írjunk egy
+ levelet a <a href="mailto:www at FreeBSD.org">www at FreeBSD.org</a>
+ címre, hogy fel tudjuk ide is tenni.</p>
+ </xsl:template>
+
+ <xsl:template name="html-events-map">
+ <xsl:param name="mapurl" select="'none'" />
+
+ <p>A lentebb látható térképen
+ sötét pirossal jelöltük azokat az
+ országokat és régiókat, ahol a
+ közeljövõben valamilyen nagyobb &os;
+ témájú esemény várható.
+ Sárgával és narancssárgával
+ jelöltük azokat az országokat, ahol
+ korábban már lezajlott valamilyen &os;
+ témájú esemény. Itt a színek
+ az események számával egyre
+ sötétednek.</p>
+
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="$mapurl" />
+ </xsl:attribute>
+ </img>
+ </xsl:template>
+
+ <xsl:template name="html-events-list-preface">
+ <p>Ha tudunk valamilyen olyan &os; témájú
+ eseményrõl vagy eseményekrõl, amelyek a
+ többi &os; felhasználó számára is
+ érdekesek lehetnek, de még nem szerepelnek az
+ oldalon található listában, írjuk meg
+ a <a href="mailto:www at FreeBSD.org">www at FreeBSD.org</a>
+ címre, hogy fel tudjuk tenni.</p>
+
+ <p>Az iCalendar formátumot ismerõ programokkal
+ dolgozó felhasználók az oldalon szereplõ
+ összes eseményt elérhetik a <a
+ href="&base;/events/events.ics">kalendáriumként</a>
+ is.</p>
+ </xsl:template>
+
+ <xsl:template name="html-events-list-upcoming-heading">
+ <h2 id="upcoming">Aktuális/közelgõ
+ események:</h2>
+ </xsl:template>
+
+ <xsl:template name="html-events-list-past-heading">
+ <h2 id="past">Korábbi események:</h2>
+ </xsl:template>
+
+ <xsl:template name="html-list-advisories-release-label">
+ <xsl:param name="relname" select="'none'" />
+
+ <p>Megjelent a <xsl:value-of select="$relname" />.</p>
+ </xsl:template>
+
+ <xsl:template name="rdf-security-advisories-title"
+ xmlns="http://my.netscape.com/rdf/simple/0.9/">
+ <channel>
+ <title>&os; biztonsági figyelmeztetések</title>
+ <link>http://www.FreeBSD.org/security/</link>
+ <description>A &os; Projekt által megjelentetett
+ biztonsági figyelmeztetések</description>
+ </channel>
+ </xsl:template>
+
+ <xsl:template name="rss-security-advisories-title"
+ xmlns:atom="http://www.w3.org/2005/Atom">
+ <xsl:param name="advisories.xml" select="''" />
+
+ <xsl:variable name="title">&os; biztonsági figyelmeztetések</xsl:variable>
+ <xsl:variable name="link">http://www.FreeBSD.org/security/</xsl:variable>
+
+ <title><xsl:value-of select="$title" /></title>
+ <link><xsl:value-of select="$link" /></link>
+ <description>A &os; Projekt által megjelentetett
+ biztonsági figyelmeztetések</description>
+ <language>en-us</language>
+ <webMaster>secteam at FreeBSD.org (&os; Security Team)</webMaster>
+ <managingEditor>secteam at FreeBSD.org (&os; Security Team)</managingEditor>
+ <docs>http://blogs.law.harvard.edu/tech/rss</docs>
+ <ttl>120</ttl>
+ <image>
+ <url>http://www.FreeBSD.org/logo/logo-full.png</url>
+ <title><xsl:value-of select="$title" /></title>
+ <link><xsl:value-of select="$link" /></link>
+ </image>
+ <atom:link rel="self" type="application/rss+xml">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$link" /><xsl:text>rss.xml</xsl:text>
+ </xsl:attribute>
+ </atom:link>
+ </xsl:template>
+
+ <xsl:template name="rss-errata-notices-title"
+ xmlns:atom="http://www.w3.org/2005/Atom">
+ <xsl:param name="notices.xml" select="''" />
+
+ <xsl:variable name="title">&os; sajtóhibák</xsl:variable>
+ <xsl:variable name="link">http://www.FreeBSD.org/security/</xsl:variable>
+
+ <title><xsl:value-of select="$title" /></title>
+ <link><xsl:value-of select="$link" /></link>
+ <description>A &os; Projekt által megjelentetett
+ sajtóhibák</description>
+ <language>en-us</language>
+ <webMaster>secteam at FreeBSD.org (FreeBSD Security Team)</webMaster>
+ <managingEditor>secteam at FreeBSD.org (FreeBSD Security Team)</managingEditor>
+ <docs>http://blogs.law.harvard.edu/tech/rss</docs>
+ <ttl>120</ttl>
+ <image>
+ <url>http://www.FreeBSD.org/logo/logo-full.png</url>
+ <title><xsl:value-of select="$title" /></title>
+ <link><xsl:value-of select="$link" /></link>
+ </image>
+ <atom:link rel="self" type="application/rss+xml">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$link" /><xsl:text>rss.xml</xsl:text>
+ </xsl:attribute>
+ </atom:link>
+ </xsl:template>
+
+ <xsl:template name="html-index-advisories-items-lastmodified">
+ <xsl:param name="advisories.xml" select="''" />
+ <xsl:param name="type" select="'advisory'" />
+
+ <xsl:choose>
+ <xsl:when test="$type = 'advisory'">
+ <xsl:call-template name="misc-format-date-string">
+ <xsl:with-param name="year"
+ select="document($advisories.xml)/descendant::year[month/day/advisory[position() = 1]]/name" />
+ <xsl:with-param name="month"
+ select="document($advisories.xml)/descendant::month[day/advisory[position() = 1]]/name"/>
+ <xsl:with-param name="day"
+ select="document($advisories.xml)/descendant::day[advisory[position() = 1]]/name" />
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="$type = 'notice'">
+ <xsl:call-template name="misc-format-date-string">
+ <xsl:with-param name="year"
+ select="document($advisories.xml)/descendant::year[month/day/notice[position() = 1]]/name" />
+ <xsl:with-param name="month"
+ select="document($advisories.xml)/descendant::month[day/notice[position() = 1]]/name" />
+ <xsl:with-param name="day"
+ select="document($advisories.xml)/descendant::day[notice[position() = 1]]/name" />
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="html-index-news-project-items-lastmodified">
+ <xsl:param name="news.project.xml-master" select="''" />
+
+ <xsl:call-template name="misc-format-date-string">
+ <xsl:with-param name="year"
+ select="document($news.project.xml-master)/descendant::year[position() = 1]/name" />
+ <xsl:with-param name="month"
+ select="document($news.project.xml-master)/descendant::month[position() = 1]/name" />
+ <xsl:with-param name="day"
+ select="document($news.project.xml-master)/descendant::day[position() = 1]/name" />
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name="html-index-news-press-items-lastmodified">
+ <xsl:param name="news.press.xml-master" select="''" />
+
+ <xsl:call-template name="misc-format-date-string">
+ <xsl:with-param name="year"
+ select="document($news.press.xml-master)/descendant::year[position() = 1]/name" />
+ <xsl:with-param name="month"
+ select="document($news.press.xml-master)/descendant::month[position() = 1]/name" />
+ <xsl:with-param name="date-format"
+ select="$param-l10n-date-format-YM" />
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Convert a month number to the corresponding long English name. -->
+ <xsl:template name="gen-long-en-month">
+ <xsl:param name="nummonth"/>
+ <xsl:variable name="month" select="number($nummonth)"/>
+ <xsl:choose>
+ <xsl:when test="$month=1">január</xsl:when>
+ <xsl:when test="$month=2">február</xsl:when>
+ <xsl:when test="$month=3">március</xsl:when>
+ <xsl:when test="$month=4">április</xsl:when>
+ <xsl:when test="$month=5">május</xsl:when>
+ <xsl:when test="$month=6">június</xsl:when>
+ <xsl:when test="$month=7">július</xsl:when>
+ <xsl:when test="$month=8">augusztus</xsl:when>
+ <xsl:when test="$month=9">szeptember</xsl:when>
+ <xsl:when test="$month=10">október</xsl:when>
+ <xsl:when test="$month=11">november</xsl:when>
+ <xsl:when test="$month=12">december</xsl:when>
+ <xsl:otherwise>érvénytelen hónap</xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Convert a month number to the corresponding short English name. -->
+ <xsl:template name="gen-short-en-month">
+ <xsl:param name="nummonth"/>
+ <xsl:variable name="month" select="number($nummonth)"/>
+ <xsl:choose>
+ <xsl:when test="$month=1">jan</xsl:when>
+ <xsl:when test="$month=2">feb</xsl:when>
+ <xsl:when test="$month=3">már</xsl:when>
+ <xsl:when test="$month=4">ápr</xsl:when>
+ <xsl:when test="$month=5">máj</xsl:when>
+ <xsl:when test="$month=6">jún</xsl:when>
+ <xsl:when test="$month=7">júl</xsl:when>
+ <xsl:when test="$month=8">aug</xsl:when>
+ <xsl:when test="$month=9">szep</xsl:when>
+ <xsl:when test="$month=10">okt</xsl:when>
+ <xsl:when test="$month=11">nov</xsl:when>
+ <xsl:when test="$month=12">dec</xsl:when>
+ <xsl:otherwise>érvénytelen hónap</xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Generate a date interval. -->
+ <!-- Sample: 2002. november 27 - 2003. december 29. -->
+ <xsl:template name="gen-date-interval">
+ <xsl:param name="startdate"/>
+ <xsl:param name="enddate"/>
+
+ <xsl:value-of select="startdate/year"/>
+
+ <xsl:text>. </xsl:text>
+ <xsl:call-template name="gen-long-en-month">
+ <xsl:with-param name="nummonth" select="startdate/month"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+
+ <xsl:if test="number(startdate/month) != number(enddate/month) or
+ number(startdate/day) != number(enddate/day) or
+ number(startdate/year) != number(enddate/year)">
+
+ <xsl:value-of select="startdate/day"/>
+
+ <xsl:text> - </xsl:text>
+ </xsl:if>
+
+ <xsl:if test="number(startdate/year) != number(enddate/year)">
+ <xsl:value-of select="enddate/year"/>
+ <xsl:text>.</xsl:text>
+ </xsl:if>
+
+ <xsl:if test="number(startdate/month) != number(enddate/month) or
+ number(startdate/year) != number(enddate/year)">
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="gen-long-en-month">
+ <xsl:with-param name="nummonth" select="enddate/month"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+
+ <xsl:value-of select="enddate/day"/>
+ <xsl:text>.</xsl:text>
+ </xsl:template>
+
+ <!-- template: "html-index-events-items"
+ pulls in the 5 most recent events items -->
+
+ <xsl:template name="html-index-events-items">
+ <xsl:param name="events.xml-master" select="'none'" />
+ <xsl:param name="events.xml" select="''" />
+
+ <xsl:for-each select="document($events.xml)/descendant::event[
+ ((number(enddate/year) > number($curdate.year)) or
+ (number(enddate/year) = number($curdate.year) and
+ number(enddate/month) > number($curdate.month)) or
+ (number(enddate/year) = number($curdate.year) and
+ number(enddate/month) = number($curdate.month) and
+ enddate/day >= $curdate.day))]">
+ <xsl:sort select="startdate/year" order="ascending"/>
+ <xsl:sort select="format-number(startdate/month, '00')" order="ascending"/>
+ <xsl:sort select="format-number(startdate/day, '00')" order="ascending"/>
+
+ <xsl:if test="position() <= 5">
+
+ <p>
+ <span class="txtdate">
+ <xsl:value-of select='
+ concat(format-number(startdate/year, "####"), "-",
+ format-number(startdate/month, "00"), "-",
+ format-number(startdate/day, "00"), " - ",
+ format-number(enddate/year, "####"), "-",
+ format-number(enddate/month, "00"), "-",
+ format-number(enddate/day, "00"))' />
+ </span><br />
+ <a>
+ <xsl:attribute name="href">
+ <xsl:choose>
+ <xsl:when test="$events.xml-master = 'none'">&enbase;/</xsl:when>
+ <xsl:otherwise>&base;/</xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>events/#</xsl:text>
+ <xsl:call-template name="generate-event-anchor"/>
+ </xsl:attribute>
+
+ <xsl:value-of select="name"/>
+
+ <br />
+ <xsl:if test="location/city!='' and location/country!=''">
+ (<xsl:value-of select='location/city' />, <xsl:value-of select='location/country' />)
+ </xsl:if>
+ </a></p>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:template>
</xsl:stylesheet>
More information about the p4-projects
mailing list