Initial import, synchronized with English 1.1
Obtained from: The FreeBSD Russian Documentation Project
This commit is contained in:
parent
f08319ed75
commit
579b4a265f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=24910
2 changed files with 200 additions and 0 deletions
90
ru/events/events.dtd
Normal file
90
ru/events/events.dtd
Normal file
|
@ -0,0 +1,90 @@
|
|||
<!--
|
||||
The FreeBSD Russian Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$FreeBSDru: frdp/www/ru/events/events.dtd,v 1.1 2005/06/17 06:56:00 andy Exp $
|
||||
|
||||
Original revision: 1.1
|
||||
-->
|
||||
|
||||
<!-- 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.
|
||||
-->
|
||||
|
||||
<!-- DTD for events.xml on the FreeBSD website. -->
|
||||
|
||||
<!ELEMENT events (cvs:keywords?, event+)>
|
||||
|
||||
<!ELEMENT event (name?, url?, startdate, enddate, location, description?, link*)>
|
||||
<!ATTLIST event id ID #REQUIRED>
|
||||
|
||||
<!ELEMENT name (#PCDATA)>
|
||||
<!ELEMENT url (#PCDATA)>
|
||||
<!--
|
||||
Meaning of type attribute:
|
||||
freebsd-website:
|
||||
The URL is relative to the FreeBSD website root.
|
||||
The URL should start with a single "/".
|
||||
absolute:
|
||||
Normal absolute URL.
|
||||
-->
|
||||
<!ATTLIST url type (absolute|freebsd-website) "absolute">
|
||||
|
||||
<!ELEMENT startdate (year,month,day)>
|
||||
<!ELEMENT enddate (year,month,day)>
|
||||
<!ELEMENT year (#PCDATA)>
|
||||
<!ELEMENT month (#PCDATA)>
|
||||
<!ELEMENT day (#PCDATA)>
|
||||
|
||||
<!ELEMENT location (country?,state?,city?,site?,address?)>
|
||||
<!ELEMENT country (#PCDATA)>
|
||||
<!ELEMENT state (#PCDATA)>
|
||||
<!ELEMENT city (#PCDATA)>
|
||||
<!ELEMENT site (#PCDATA)>
|
||||
<!ELEMENT address (#PCDATA)>
|
||||
|
||||
<!ELEMENT description (#PCDATA|a|tt|i|b)*>
|
||||
|
||||
<!-- Misc HTML entities which might be used; just add more as needed -->
|
||||
<!ELEMENT a (#PCDATA)>
|
||||
<!ATTLIST a href CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT b (#PCDATA|a)*>
|
||||
<!ELEMENT i (#PCDATA|a)*>
|
||||
<!ELEMENT tt (#PCDATA|a)*>
|
||||
|
||||
<!--
|
||||
Link to a web page (local or remote) with additional information
|
||||
about the event. Can also be used for post-event comments/notes.
|
||||
-->
|
||||
<!ELEMENT link (name, url)>
|
||||
<!ATTLIST link type (photos|notes|other) "other">
|
||||
|
||||
<!-- Common CVS tags -->
|
||||
<!ELEMENT cvs:keywords (cvs:keyword+)>
|
||||
<!ATTLIST cvs:keywords xmlns:cvs CDATA #FIXED 'http://www.FreeBSD.org/XML/CVS'>
|
||||
<!ATTLIST cvs:keywords version CDATA #FIXED '1.0'>
|
||||
|
||||
<!ELEMENT cvs:keyword (#PCDATA)>
|
||||
<!ATTLIST cvs:keyword name CDATA #REQUIRED>
|
110
ru/events/includes.xsl
Normal file
110
ru/events/includes.xsl
Normal file
|
@ -0,0 +1,110 @@
|
|||
<?xml version="1.0" encoding="KOI8-R" ?>
|
||||
|
||||
<!--
|
||||
The FreeBSD Russian Documentation Project
|
||||
|
||||
$FreeBSDru: frdp/www/ru/events/includes.xsl,v 1.1 2004/03/01 18:29:15 andy Exp $
|
||||
|
||||
Original revision: 1.1
|
||||
-->
|
||||
|
||||
<!-- 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.
|
||||
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<!-- Generate a unique anchor for this event. -->
|
||||
<xsl:template name="generate-event-anchor">
|
||||
<xsl:text>event:</xsl:text>
|
||||
<xsl:value-of select="@id"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Generic templates: -->
|
||||
|
||||
<!-- 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">ñÎ×ÁÒØ</xsl:when>
|
||||
<xsl:when test="$month=2">æÅ×ÒÁÌØ</xsl:when>
|
||||
<xsl:when test="$month=3">íÁÒÔ</xsl:when>
|
||||
<xsl:when test="$month=4">áÐÒÅÌØ</xsl:when>
|
||||
<xsl:when test="$month=5">íÁÊ</xsl:when>
|
||||
<xsl:when test="$month=6">éÀÎØ</xsl:when>
|
||||
<xsl:when test="$month=7">éÀÌØ</xsl:when>
|
||||
<xsl:when test="$month=8">á×ÇÕÓÔ</xsl:when>
|
||||
<xsl:when test="$month=9">óÅÎÔÑÂÒØ</xsl:when>
|
||||
<xsl:when test="$month=10">ïËÔÑÂÒØ</xsl:when>
|
||||
<xsl:when test="$month=11">îÏÑÂÒØ</xsl:when>
|
||||
<xsl:when test="$month=12">äÅËÁÂÒØ</xsl:when>
|
||||
<xsl:otherwise>Invalid month</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Generate a date interval. -->
|
||||
<!-- Sample: 27 November, 2002 - 29 December, 2003 -->
|
||||
<xsl:template name="gen-date-interval">
|
||||
<xsl:param name="startdate"/>
|
||||
<xsl:param name="enddate"/>
|
||||
|
||||
<xsl:value-of select="startdate/day"/>
|
||||
|
||||
<xsl:if test="number(startdate/month) != number(enddate/month) or
|
||||
number(startdate/day) != number(enddate/day) or
|
||||
number(startdate/year) != number(enddate/year)">
|
||||
|
||||
<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="startdate/month"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="number(startdate/year) != number(enddate/year)">
|
||||
<xsl:text>, </xsl:text>
|
||||
<xsl:value-of select="startdate/year"/>
|
||||
</xsl:if>
|
||||
<xsl:text> - </xsl:text>
|
||||
|
||||
<xsl:if test="number(startdate/day) != number(enddate/day) or
|
||||
number(startdate/month) != number(enddate/month) or
|
||||
number(startdate/year) != number(enddate/year)">
|
||||
<xsl:value-of select="enddate/day"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<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:value-of select="enddate/year"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in a new issue