doc/hu/events/rss.xsl
Gabor Pali 4d6a97bc06 Extend Hungarian main web page translation by the following items:
- Project news entries, from 2009 (HTML, RSS, RDF)
- Press releases, from 2008 (HTML, RSS)
- Events, from 2009 (HTML, RSS)
- Security advisories (HTML, RSS)
- Standardize translation of "More" on the front page
- Fix a link for the errata RSS Feed image

Obtained from:	The FreeBSD Hungarian Documentation Project
2009-04-06 17:56:08 +00:00

158 lines
6.2 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD Fragment//EN"
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
<!ENTITY title "&os; k&ouml;zpont&uacute; esem&eacute;nyek">
<!ENTITY email "freebsd-www">
<!ENTITY % navinclude.about "INCLUDE">
]>
<!-- $FreeBSD$ -->
<!-- Copyright (c) 2008 Murray Stokely <murray@FreeBSD.org>
Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<!-- The FreeBSD Hungarian Documentation Project
Translated by: PALI, Gabor <pgj@FreeBSD.org>
%SOURCE% en/events/rss.xsl
%SRCID% 1.1
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="date"
exclude-result-prefixes="cvs">
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
<xsl:variable name="date">
<xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
</xsl:variable>
<xsl:output method="xml" indent="yes"/>
<xsl:key name="event-by-month" match="event"
use="concat(startdate/year, format-number(startdate/month, '00'))"/>
<!-- Template: events -->
<xsl:template match="events">
<xsl:variable name="title">A &os; Projekttel kapcsolatos k&ouml;zelg&#245;
esem&eacute;nyek</xsl:variable>
<xsl:variable name="link">http://www.FreeBSD.org/hu/events/</xsl:variable>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><xsl:value-of select="$title" /></title>
<link><xsl:value-of select="$link" /></link>
<description>A k&ouml;zelj&ouml;v&#245;ben megrendez&eacute;sre
ker&uuml;l&#245;, k&uuml;l&ouml;nb&ouml;z&#245; &os;
t&eacute;m&aacute;j&uacute; konferenci&aacute;k,
gy&#251;l&eacute;sek, kurzusok &eacute;s egy&eacute;b fontos
esem&eacute;nyek.</description>
<language>hu-hu</language>
<webMaster>freebsd-www@FreeBSD.org (Webmesterek)</webMaster>
<managingEditor>freebsd-www@FreeBSD.org (Webmesterek)</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:for-each select="event[generate-id() =
generate-id(key('event-by-month',
concat(startdate/year, format-number(startdate/month, '00')))[1])
and ((number(enddate/year) &gt; number($curdate.year)) or
(number(enddate/year) = number($curdate.year) and
number(enddate/month) &gt; number($curdate.month)) or
(number(enddate/year) = number($curdate.year) and
number(enddate/month) = number($curdate.month) and
enddate/day &gt;= $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:variable name="guid"><xsl:value-of select="url"/></xsl:variable>
<item>
<title><xsl:value-of select="name"/></title>
<description>
<xsl:value-of select="name"/>
<xsl:if test="url">
<xsl:text> (</xsl:text>
<xsl:value-of select="url"/>
<xsl:text>)</xsl:text>
</xsl:if>
<xsl:if test="location/site!=''">
<xsl:text>, </xsl:text>
<xsl:value-of select="location/site"/>
</xsl:if>
<xsl:if test="location/city!=''">
<xsl:text>, </xsl:text>
<xsl:value-of select="location/city"/>
</xsl:if>
<xsl:if test="location/state!=''">
<xsl:text>, </xsl:text>
<xsl:value-of select="location/state"/>
</xsl:if>
<xsl:if test="location/country!=''">
<xsl:text>, </xsl:text>
<xsl:value-of select="location/country"/>
</xsl:if>
<xsl:text> </xsl:text>
<xsl:call-template name="gen-date-interval">
<xsl:with-param name="startdate" select="startdate" />
<xsl:with-param name="enddate" select="enddate" />
</xsl:call-template>
<xsl:text>. </xsl:text>
<xsl:apply-templates select="description"/>
</description>
<link><xsl:value-of select="$guid" /></link>
<guid><xsl:value-of select="$guid" /></guid>
</item>
</xsl:for-each>
</channel>
</rss>
</xsl:template>
</xsl:stylesheet>