aboutsummaryrefslogtreecommitdiff
path: root/ru
diff options
context:
space:
mode:
authorAndrey Zakhvatov <andy@FreeBSD.org>2005-06-18 06:02:50 +0000
committerAndrey Zakhvatov <andy@FreeBSD.org>2005-06-18 06:02:50 +0000
commit579b4a265ff856741889a1c1450a90ecda7afe52 (patch)
treeef2370d5e2532ca877a5297617724adc31f71644 /ru
parentf08319ed7570a8f9ec738f51899f663b31f9ec7b (diff)
downloaddoc-579b4a265ff856741889a1c1450a90ecda7afe52.tar.gz
doc-579b4a265ff856741889a1c1450a90ecda7afe52.zip
Initial import, synchronized with English 1.1
Obtained from: The FreeBSD Russian Documentation Project
Notes
Notes: svn path=/www/; revision=24910
Diffstat (limited to 'ru')
-rw-r--r--ru/events/events.dtd90
-rw-r--r--ru/events/includes.xsl110
2 files changed, 200 insertions, 0 deletions
diff --git a/ru/events/events.dtd b/ru/events/events.dtd
new file mode 100644
index 0000000000..97047357a9
--- /dev/null
+++ b/ru/events/events.dtd
@@ -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>
diff --git a/ru/events/includes.xsl b/ru/events/includes.xsl
new file mode 100644
index 0000000000..40bd0a58f9
--- /dev/null
+++ b/ru/events/includes.xsl
@@ -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>